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

commit f40e76c1b29f3f1d5a05abf8007f1c8c4537bca1
Author: András Vöröskői <voros...@frugalware.org>
Date:   Sun Jun 14 21:40:54 2009 +0200

fix unzip hack part for pacman-g2, thx vmiklos

diff --git a/scripts/makepkg b/scripts/makepkg
index e796cc8..05cb254 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -96,9 +96,10 @@ Fextract() {
if [ "$cmd" != "" ]; then
msg2 "$cmd"
$cmd
-               if [ $? -ne 0 ]; then
+               ret = $?
+               if [ $ret -ne 0 ]; then
# unzip will return a 1 as a warning, it is not an error
-                       if [ "$unziphack" != "1" -o $? -ne 1 ]; then
+                       if [ "$unziphack" != "1" -o $ret -ne 1 ]; then
error "Failed to extract ${file}"
msg "Aborting..."
Fdie
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to