diff options
author | Christian Hesse <mail@eworm.de> | 2018-12-27 21:40:12 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-12-27 21:42:30 +0100 |
commit | 1131d8ee41ba368478a7de121906f9172bb805e3 (patch) | |
tree | 0b28b9d378c0880f960f6132a9b55f59061c9a4f /capsman-download-packages | |
parent | 0ecb0749fd8bae1a6734da2d1daec2357d47fd27 (diff) |
capsman-download-packages: act in package-path only
Diffstat (limited to 'capsman-download-packages')
-rw-r--r-- | capsman-download-packages | 5 |
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 ]; |