]> pd.if.org Git - zpackage/blobdiff - zpm-pkg
use zpm shell instead of sqlite3
[zpackage] / zpm-pkg
diff --git a/zpm-pkg b/zpm-pkg
index 30630d3116149cc68af24df8d5a16a6b07f78d17..67f9eb11e968732b99ee2f7b030a9ec4d8044999 100755 (executable)
--- a/zpm-pkg
+++ b/zpm-pkg
@@ -27,9 +27,9 @@ if [ ! -f $pkgfile ]; then
 fi
 
 for path in $*; do
-       hash=$(./zpm-addfile $pkgfile $path)
+       hash=$(zpm addfile $pkgfile $path)
 
-sqlite3 $pkgfile <<EOS
+zpm shell $pkgfile <<EOS
 insert into packagefiles
 values ('$package', nullif('$subpackage', ''), '$hash', '$path', NULL)
 ;