]> pd.if.org Git - zpackage/blobdiff - zpm-pkg
add option to zpm-add to complete package
[zpackage] / zpm-pkg
diff --git a/zpm-pkg b/zpm-pkg
index 14a01654ea598e79152aabd9ac7eb701cac4ce6d..a2ac9b9065d49c237de0e34b4a4f4c3acd29b195 100755 (executable)
--- a/zpm-pkg
+++ b/zpm-pkg
@@ -5,7 +5,6 @@
 #zpm pkg -s packager=foo zpm
 
 # zpm pkg -f <pkgfile> zpm packager=xyz
-# zpm pkg zpm packager zyz
 # zpm pkg zpm packager
 
 warn() {
@@ -41,7 +40,7 @@ fi
 item=$1
 shift
 #printf "pkg: %s\n" $pkg
-pkgid=$(zpm findpkg $pkgfile "$item")
+pkgid=$(zpm findpkg -f $pkgfile "$item")
 
 if [ -z "$pkgid" ]; then
        die "can't find pkgid for $item in $pkgfile"
@@ -58,7 +57,7 @@ while [ $# -gt 0 ]; do
        show=0
        case "$item" in
                :*)
-                       pkgid=$(zpm findpkg $pkgfile "${item#:}")
+                       pkgid=$(zpm findpkg -f $pkgfile "${item#:}")
                        continue
                        ;;
                *=*)