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

commit 585d2374707dd71ffeea33a40db04bedfa5ccc98
Author: Michel Hermier <[email protected]>
Date:   Thu Mar 13 08:59:23 2014 +0100

makepkg: Treat -- and unkown arguments as errors (like previous implementation).

diff --git a/scripts/makepkg b/scripts/makepkg
index b9925a6..61252f5 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -1224,7 +1224,6 @@ makepkg() {
"${@:2}"
continue;;
# special options
-               --)     shift; break ;; # End of options
--*|-?) error "Invalid option: $1"
makepkg_usage
return 1 ;;
@@ -1236,7 +1235,9 @@ makepkg() {
continue ;;
*=*)    eval $(IFS= ; printf 'export %q=%q' "${1%%=*}" "${1#*=}")
;;
-               *)      break ;; # End of options
+               *)      error "Invalid argument: $1"
+                       makepkg_usage
+                       return 1 ;;
esac
if ! shift "$_options_consumed"; then
_options_consumed=$(($_options_consumed - 1))
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to