]> pd.if.org Git - zpackage/commitdiff
add -p option to update to pass through to syncfs
authorNathan Wagner <nw@hydaspes.if.org>
Fri, 21 Dec 2018 02:15:29 +0000 (02:15 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Fri, 21 Dec 2018 02:15:29 +0000 (02:15 +0000)
zpm-update

index c3c65ed4d9c8b6423c6f4f197b59b96620d6e022..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 ...
 
 # 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" ;;
        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 ;;
                l) justlist=1 ;;
                U) uninstall=1 ;;
                z) pullrepos=0 ;;
+               p) syncopts="$syncopts -p" ;;
                *) die "usage ..." ;;
        esac
 done
                *) die "usage ..." ;;
        esac
 done