]> pd.if.org Git - zpackage/blobdiff - zpm-add
change findpkg to use -f option
[zpackage] / zpm-add
diff --git a/zpm-add b/zpm-add
index 2621b596cedf08bc7e391427932b7ce16c2374f6..1d68800a9c2faf5d68befb55620a393f47340142 100755 (executable)
--- a/zpm-add
+++ b/zpm-add
@@ -71,7 +71,7 @@ if [ -z "$release" ]; then
        if [ -z "$pkgfile" ]; then
                die "cannot determine package file"
        else
-               pkgstr=$(zpm findpkg $pkgfile $pkgid)
+               pkgstr=$(zpm findpkg -f $pkgfile $pkgid)
                if [ -z "$pkgstr" ]; then
                        die "unable to find package id for $pkgid in $pkgfile"
                fi
@@ -176,5 +176,8 @@ commit;
 EOS
 
 #printf "%s %s%s\n" $path $rpath ${target:+" -> $target"}
-printf "%s\n" $path
+if [ $verbose -gt 0 ]; then
+       printf "%s\n" $path
+fi
+
 done