3 pkgfile=${ZPMDB:-/var/lib/zpm/db.zpm}
5 while getopts f: opt; do
7 f) pkgfile="$OPTARG" ;;
14 if [ ! -f $pkgfile ]; then
15 echo cannot find $pkgfile
21 pkgid=$(zpm findpkg $pkgfile $pkg)
23 zpm shell $pkgfile <<EOS
25 select package, version, release,
26 path || case when hash is null then '/' else '' end
28 where printf('%s-%s-%s', package,version,release) = '$pkgid'