From 1131d8ee41ba368478a7de121906f9172bb805e3 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 27 Dec 2018 21:40:12 +0100 Subject: capsman-download-packages: act in package-path only --- capsman-download-packages | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ]; -- cgit v1.2.3-70-g09d2