+showscript() (
+ stage=$1
+ stage=$(zpm quote "$stage")
+ hash=$(zpm shell $pkgfile "select hash from scripts_pkgid
+ where pkgid = '$pkgid' and stage = '$stage'")
+ if [ -z "$hash" ]; then
+ die "no script for $stage $pkgid"
+ fi
+ zpm extract $pkgfile "$hash" -
+)
+