X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-contents;h=39b48a779a2f342f88aa121525e45c4976a1f3c8;hb=c02e8d831122a804f675a2f106b2e23af235be58;hp=6bc470e51e9c59fa0c74cae9657ac20de8c48fd6;hpb=0c6d2b1131db0c4b477d52b935ff6a7f52084a3c;p=zpackage diff --git a/zpm-contents b/zpm-contents index 6bc470e..39b48a7 100755 --- a/zpm-contents +++ b/zpm-contents @@ -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'