]> pd.if.org Git - zpackage/commitdiff
print pkgids only for update installs
authorNathan Wagner <nw@hydaspes.if.org>
Fri, 7 Dec 2018 08:09:49 +0000 (08:09 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Fri, 7 Dec 2018 08:09:49 +0000 (08:09 +0000)
zpm-update

index 80258b8308a34835fb5ccda80062f28aca6db74d..fcfb81668887476ce4aa872a051cb262dd312d92 100755 (executable)
@@ -245,6 +245,12 @@ if [ -n "$baddl" ]; then
        die
 fi
 
+for package in $merge; do
+       pkgid=${package%:*}
+       installlist="$installlist $pkgid"
+done
+installlist=${installlist#' '}
+
 if [ $justlist -eq 1 ]; then
        for package in $merge; do
                pkgid=${package%:*}
@@ -261,7 +267,7 @@ if [ -z "$merge" ] && [ -z "$to_remove" ]; then
        exit 0
 fi
 
-test -n "$merge" && echo "install: $merge"
+test -n "$merge" && echo "install: $installlist"
 test -n "$to_remove" && echo "remove: $to_remove"
 
 # finally, merge everything