]> pd.if.org Git - zpackage/blobdiff - zpm-add
improve contents and packagehash
[zpackage] / zpm-add
diff --git a/zpm-add b/zpm-add
index 28c12f96fef2cd82f6af30b67e79a227f689b788..6dc08b7d1dc09bce85dd4241bbe4eb56f55648e1 100755 (executable)
--- a/zpm-add
+++ b/zpm-add
@@ -199,8 +199,12 @@ for path in $*; do
 
        # TODO check that we have such a package,version,release
        #cat <<EOS
+       if [ $verbose -gt 2 ]; then
+               shellecho=".echo on"
+       fi
        zpm shell $pkgfile <<EOS
 begin;
+$shellecho
 insert or replace into packagefiles (package,version,release,path,mode,mtime,username,groupname,filetype,hash,configuration,target)
 values ('$package', '$pkgver', $pkgrel, '$rpath', '$mode',$mtime, '$username','$groupname','$filetype',$hash,$isconfig,$target);
 commit;