X-Git-Url: https://pd.if.org/git/?p=zpackage;a=blobdiff_plain;f=zpm-update;h=80258b8308a34835fb5ccda80062f28aca6db74d;hp=fdfa1f6e3987cb4fa62c15a65da8f6736c753fe0;hb=4ee9eb3faab6f30a89d07d9f80aeca456af05d80;hpb=e21785a5c6b2f84521d1a63ba504ebeece4bc75d diff --git a/zpm-update b/zpm-update index fdfa1f6..80258b8 100755 --- a/zpm-update +++ b/zpm-update @@ -102,13 +102,14 @@ install_for_libs='' backup=0 ignorelibdeps=0 justlist=0 +pullrepos=1 # treat un-adorned packages as uninstalls 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:nSCvAObBLU opt; do +while getopts f:d:R:nSCvAObBLUz opt; do case $opt in f) pkgfile="$OPTARG" ;; d) localdb="$OPTARG" ;; @@ -126,6 +127,7 @@ while getopts f:d:R:nSCvAObBLU opt; do L) ignorelibdeps=1 ;; l) justlist=1 ;; U) uninstall=1 ;; + z) pullrepos=0 ;; *) die "usage ..." ;; esac done @@ -180,6 +182,11 @@ search=$(echo $search) ebail=0 +if [ $pullrepos -eq 1 ]; then + echo pulling repos + zpm repo pull +fi + if [ $ignorelibdeps -eq 1 ]; then merge=$(zpm search -iIO $search) else