aboutsummaryrefslogtreecommitdiffstats
path: root/capsman-download-packages
diff options
context:
space:
mode:
Diffstat (limited to 'capsman-download-packages')
-rw-r--r--capsman-download-packages5
1 files changed, 4 insertions, 1 deletions
diff --git a/capsman-download-packages b/capsman-download-packages
index 5bdb423..dc68486 100644
--- a/capsman-download-packages
+++ b/capsman-download-packages
@@ -10,10 +10,13 @@
:global CertificateAvailable;
:local "package-path" [ / caps-man manager get package-path ];
+:if ([ :pick $"package-path" 0 ] = "/") do={
+ :set "package-path" [ :pick $"package-path" 1 [ :len $"package-path" ] ];
+}
:local "installed-version" [ / system package update get installed-version ];
:local updated false;
-:foreach package in=[ / file find where type=package ] do={
+:foreach package in=[ / file find where type=package name~("^" . $"package-path") ] do={
:if ([ / file get $package package-version ] != $"installed-version") do={
:local "package-name" [ / file get $package package-name ];
:local "package-architecture" [ / file get $package package-architecture ];