]> pd.if.org Git - zpackage/commitdiff
run package scripts from target db
authorNathan Wagner <nw@hydaspes.if.org>
Mon, 26 Nov 2018 09:20:37 +0000 (09:20 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Mon, 26 Nov 2018 09:20:37 +0000 (09:20 +0000)
zpm-install

index 0d2055af5b0ff82ae726f9a67e7af8c6c19695d4..8d92ff7e5e51baddde1603c6e3c3dd856ebab275 100755 (executable)
@@ -216,9 +216,9 @@ for pkgid in $pkglist; do
        current=$(zpm list -s installed "$package")
        
        if [ $runscripts -gt 0 ]; then
-               zpm script -f $pkgfile -p post-install $pkgid $current
+               zpm script -p post-install $pkgid $current
        else
-               if zpm script -f $pkgfile -Fql -p post-install $pkgid; then
+               if zpm script -Fql -p post-install $pkgid; then
                        zpm note -e -p $pkgid -m 'post-install script not run'
                fi
        fi
@@ -232,9 +232,9 @@ for pkgid in $pkglist; do
        # TODO skip configure if not on a terminal, regardless of settings
        # TODO will need force option
        if [ $runconfigure -gt 0 ]; then
-               zpm script -f $pkgfile -p configure $pkgid
+               zpm script -p configure $pkgid
        else
-               if zpm script -f $pkgfile -Fql -p configure $pkgid; then
+               if zpm script -Fql -p configure $pkgid; then
                        zpm note -e -p $pkgid -m 'configure script not run'
                fi
        fi