+if [ -z "$release" ]; then
+ if [ -z "$pkgfile" ]; then
+ die "cannot determine package file"
+ else
+ pkgstr=$(zpm findpkg -f $pkgfile $pkgid)
+ if [ -z "$pkgstr" ]; then
+ die "unable to find package id for $pkgid in $pkgfile"
+ fi
+ pkgid=$pkgstr
+ # need to reparse the new package id
+ eval $(zpm parse -E $pkgid)
+ fi
+fi
+