]> pd.if.org Git - zpackage/blobdiff - zpm-update
add -p option to update to pass through to syncfs
[zpackage] / zpm-update
index fcfb81668887476ce4aa872a051cb262dd312d92..dbec8b0ecf13f6fd94c219b4b03f68f5e9e5ee7c 100755 (executable)
@@ -109,7 +109,7 @@ uninstall=0
 
 # TODO option to attempt to resume an ongoing install
 # zpm-install [-SCn] [ -d localdb ] [ -f pkgfile ] [ -R installroot ] pkgstr ...
-while getopts f:d:R:nSCvAObBLUz opt; do
+while getopts f:d:R:nSCvAObBLUzp opt; do
        case $opt in
                f) pkgfile="$OPTARG" ;;
                d) localdb="$OPTARG" ;;
@@ -128,6 +128,7 @@ while getopts f:d:R:nSCvAObBLUz opt; do
                l) justlist=1 ;;
                U) uninstall=1 ;;
                z) pullrepos=0 ;;
+               p) syncopts="$syncopts -p" ;;
                *) die "usage ..." ;;
        esac
 done
@@ -290,7 +291,9 @@ done
 
 to_install=${to_install#' '}
 
-echo "installing: $to_install"
+if [ -n "$to_install" ]; then
+       echo "installing: $to_install"
+fi
 
 # absorb anything we're updating or removing, if absorb flag set