fi
else
if zpm script -f $pkgfile -Fql -p pre-install $pkgid; then
- zpm note -p $pkgid -m 'pre-install script not run'
+ zpm note -e -p $pkgid -m 'pre-install script not run'
fi
fi
syncrv=$?
-for pkgid in $pkglist; do
- zpm pkg $pkgid status=dryrun
-done
+if [ $dryrun -gt 0 ]; then
+ for pkgid in $pkglist; do
+ zpm pkg $pkgid status=dryrun
+ done
+fi
if [ $syncrv -ne 0 ]; then
zpm pkg $pkgid status=failed
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'
+ zpm note -e -p $pkgid -m 'post-install script not run'
fi
fi
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'
+ zpm note -e -p $pkgid -m 'configure script not run'
fi
fi