if [ $? -ne 0 ]; then
die "pre-install script for $pkgid failed"
fi
+ else
+ if zpm script -f $pkgfile -Fql -p pre-install $pkgid; then
+ zpm note -p $pkgid -m 'pre-install script not run'
+ fi
fi
# remove the package if it exists. can't be in an installed
if [ $runscripts -gt 0 ]; then
zpm script -f $pkgfile -p post-install $pkgid $current
+ else
+ if zpm script -f $pkgfile -Fql -p post-install $pkgid; then
+ zpm note -p $pkgid -m 'post-install script not run'
+ fi
fi
if [ -n "$current" ]; then
# TODO will need force option
if [ $runconfigure -gt 0 ]; then
zpm script -f $pkgfile -p configure $pkgid
+ else
+ if zpm script -f $pkgfile -Fql -p configure $pkgid; then
+ zpm note -p $pkgid -m 'configure script not run'
+ fi
fi
+
done