#!/bin/sh
-pkgfile=${ZPMDB:-/var/lib/zpm/db.zpm}
+pkgfile=${ZPMDB:-/var/lib/zpm/local.db}
long=0
pkgonly=0
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'