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

commit 14f1158f0c67e197929fb9cbb1e012eaa02e4865
Author: Michel Hermier <[email protected]>
Date:   Wed Nov 28 12:48:43 2012 +0100

scripts/makepkg

* Make the main function not executed if sourced.

diff --git a/scripts/makepkg b/scripts/makepkg
index 8792311..b554275 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -2222,4 +2222,6 @@ _P_subpkgsfixes+=(_pkg_check_hicolor)
# Main Code Start here
#

-makepkg_main "$@"
+if [ -v PS1 ]; then
+       makepkg_main "$@"
+fi
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to