Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Sep 2008 21:10:18 +0400
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/100771: port submit (ports-mgmt/porttools) cannot parse multiple options
Message-ID:  <20080912171018.GC65683@hades.panopticon>
In-Reply-To: <200809121633.m8CGXhuc086197@freefall.freebsd.org>
References:  <200809121633.m8CGXhuc086197@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> Synopsis: port submit (ports-mgmt/porttools) cannot parse multiple options
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=100771
Sorry for the delay :))

Does the patch attached work for you?

--- porttools.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/ports-mgmt/porttools/Makefile,v
retrieving revision 1.21
diff -u -r1.21 Makefile
--- Makefile	27 Jul 2008 07:40:01 -0000	1.21
+++ Makefile	12 Sep 2008 17:09:51 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	porttools
 PORTVERSION=	0.77
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	SF
 
Index: files/patch-arguments-parsing
===================================================================
RCS file: files/patch-arguments-parsing
diff -N files/patch-arguments-parsing
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-arguments-parsing	12 Sep 2008 17:09:51 -0000
@@ -0,0 +1,90 @@
+diff -ruN cmd_commit.in.orig cmd_commit.in
+--- cmd_commit.in.orig	2006-05-06 15:31:58.000000000 +0400
++++ cmd_commit.in	2008-09-12 21:02:21.000000000 +0400
+@@ -33,8 +33,9 @@
+ fi
+ 
+ set -- $ARGS
+-for i 
+-do
++while [ x"" != x"--" -a x"" != x"" ]
++do
++	i=$1
+ 	case "$i" in
+ 	# help
+ 	-h)
+diff -ruN cmd_diff.in.orig cmd_diff.in
+--- cmd_diff.in.orig	2006-05-06 15:31:58.000000000 +0400
++++ cmd_diff.in	2008-09-12 21:02:21.000000000 +0400
+@@ -37,8 +37,9 @@
+ fi
+ 
+ set -- $ARGS
+-for i 
+-do
++while [ x"" != x"--" -a x"" != x"" ]
++do
++	i=$1
+ 	case "$i" in
+ 	# help
+ 	-h)
+diff -ruN cmd_install.in.orig cmd_install.in
+--- cmd_install.in.orig	2006-05-06 15:31:58.000000000 +0400
++++ cmd_install.in	2008-09-12 21:02:21.000000000 +0400
+@@ -36,8 +36,9 @@
+ fi
+ 
+ set -- $ARGS
+-for i 
+-do
++while [ x"" != x"--" -a x"" != x"" ]
++do
++	i=$1
+ 	case "$i" in
+ 	# help
+ 	-h)
+diff -ruN cmd_submit.in.orig cmd_submit.in
+--- cmd_submit.in.orig	2006-05-06 15:31:58.000000000 +0400
++++ cmd_submit.in	2008-09-12 21:02:21.000000000 +0400
+@@ -52,8 +52,9 @@
+ fi
+ 
+ set -- $ARGS
+-for i 
+-do
++while [ x"" != x"--" -a x"" != x"" ]
++do
++	i=$1
+ 	case "$i" in
+ 	# help
+ 	-h)
+diff -ruN cmd_test.in.orig cmd_test.in
+--- cmd_test.in.orig	2006-05-06 15:31:58.000000000 +0400
++++ cmd_test.in	2008-09-12 21:02:21.000000000 +0400
+@@ -44,8 +44,9 @@
+ fi
+ 
+ set -- $ARGS
+-for i 
+-do
++while [ x"" != x"--" -a x"" != x"" ]
++do
++	i=$1
+ 	case "$i" in
+ 	-h)	# help
+ 		usage
+diff -ruN cmd_upgrade.in.orig cmd_upgrade.in
+--- cmd_upgrade.in.orig	2006-05-06 15:31:58.000000000 +0400
++++ cmd_upgrade.in	2008-09-12 21:02:21.000000000 +0400
+@@ -36,8 +36,9 @@
+ fi
+ 
+ set -- $ARGS
+-for i 
+-do
++while [ x"" != x"--" -a x"" != x"" ]
++do
++	i=$1
+ 	case "$i" in
+ 	# help
+ 	-h)
--- porttools.patch ends here ---

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080912171018.GC65683>