Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=2a6216edccdec1ffb12fb0ef7417b159ff92c3fb

commit 2a6216edccdec1ffb12fb0ef7417b159ff92c3fb
Author: Michel Hermier <[email protected]>
Date:   Thu Nov 22 17:02:22 2012 +0100

scripts/makepkg

* Make buildscript_up2date handle the NOUP2DATE flag instead of the
caller.

diff --git a/scripts/makepkg b/scripts/makepkg
index 9c135f3..deb4f00 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -694,6 +694,10 @@ buildscript_validate() {
}

buildscript_up2date() {
+       if [ "$NOUP2DATE" = "1" ]; then
+               return 0
+       fi
+
msg "Checking for newer version..."
if $ECHO "$up2date"|grep -q " "; then
cmd=`$ECHO "$up2date"|sed 's/^\([^ ]*\) .*/\1/'`
@@ -1895,9 +1899,7 @@ fi

cd $startdir

-if [ "$NOUP2DATE" = "0" ]; then
-       buildscript_up2date
-fi
+buildscript_up2date

# estimate build time
if grep -i -q "^# Compiling Time: [~0-9\.]\+ SBU$" $BUILDSCRIPT && \
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to