]> pd.if.org Git - zpackage/commitdiff
add note where package script skipped
authorNathan Wagner <nw@hydaspes.if.org>
Sat, 24 Nov 2018 22:33:03 +0000 (22:33 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 24 Nov 2018 22:33:03 +0000 (22:33 +0000)
zpm-install

index 911ebf72bcc76702df8041a8ed799814ca4a3ab2..1fb470e4810d50c568b3b28a3534c22e9b87c48b 100755 (executable)
@@ -135,6 +135,10 @@ for pkgid in $pkglist; do
                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
@@ -201,6 +205,10 @@ for pkgid in $pkglist; do
        
        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
@@ -213,5 +221,10 @@ for pkgid in $pkglist; do
        # 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