aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-07-25 10:35:15 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-07-25 10:35:15 +0200
commite7dffe0a82e4d00579f43188be5a1a3d29f3ad8c (patch)
treead9cfba4a60ca97ad7e037e775746ac7b026acaa
parentbe133146ddcc085777fa5014074c56995266abcd (diff)
capsman-download-packages: get values into array
-rw-r--r--capsman-download-packages13
1 files changed, 6 insertions, 7 deletions
diff --git a/capsman-download-packages b/capsman-download-packages
index 06fd228..f71c121 100644
--- a/capsman-download-packages
+++ b/capsman-download-packages
@@ -14,15 +14,14 @@
:foreach Package in=[ / file find where type=package \
package-version!=$InstalledVersion name~("^" . $PackagePath) ] do={
- :local PackageName [ / file get $Package package-name ];
- :local PackageArchitecture [ / file get $Package package-architecture ];
- :if ($PackageArchitecture = "mips") do={
- :set PackageArchitecture "mipsbe";
+ :local File [ / file get $Package ];
+ :if ($File->"package-architecture" = "mips") do={
+ :set ($File->"package-architecture") "mipsbe";
}
- :if ($PackageName = "wireless@") do={
- :set PackageName "wireless";
+ :if ($File->"package-name" = "wireless@") do={
+ :set ($File->"package-name") "wireless";
}
- :if ([ $DownloadPackage $PackageName $InstalledVersion $PackageArchitecture $PackagePath ] = true) do={
+ :if ([ $DownloadPackage ($File->"package-name") $InstalledVersion $File->"package-architecture" $PackagePath ] = true) do={
:set Updated true;
/ file remove $Package;
}