]> pd.if.org Git - zpackage/blobdiff - zpm-contents
add foreach_script function
[zpackage] / zpm-contents
index 6bc470e51e9c59fa0c74cae9657ac20de8c48fd6..39b48a779a2f342f88aa121525e45c4976a1f3c8 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-pkgfile=${ZPMDB:-/var/lib/zpm/db.zpm}
+pkgfile=${ZPMDB:-/var/lib/zpm/local.db}
 
 long=0
 pkgonly=0
@@ -72,7 +72,7 @@ cols=${cols%,}
 
                printf "case\n";
                printf "when filetype = 'd' then rtrim(path,'/') || '/'\n"
-               printf "when filetype = 'l' then printf('%s -> %s', path, target)\n"
+               printf "when filetype = 'l' then printf('%%s -> %%s', path, target)\n"
                printf "else path end as path\n"
        fi
        printf 'from packagefiles_pkgid\nwhere true\n'