3 pkgfile=${ZPMDB:-/var/lib/zpm/db.zpm}
7 while getopts f:v opt; do
9 f) pkgfile="$OPTARG" ;;
17 if [ ! -f $pkgfile ]; then
18 echo cannot find $pkgfile
23 if [ $verbose -gt 0 ]; then
24 cols='filetype,mode,username,groupname,'
28 pkgid=$(zpm findpkg -f $pkgfile $pkg)
30 zpm shell $pkgfile <<EOS
33 case when filetype = 'd' then
34 rtrim(path,'/') || '/'
38 from packagefiles_pkgid
39 where pkgid = '$pkgid'