diff options
author | Ali Polatel <hawking@gentoo.org> | 2007-07-05 22:53:34 +0000 |
---|---|---|
committer | Ali Polatel <hawking@gentoo.org> | 2007-07-05 22:53:34 +0000 |
commit | 8b9e460f93095a5004e3749746922c1be05e122d (patch) | |
tree | dfe1b04fba03d36e2678f91fd089c587f1100138 /dev-python/pyzor | |
parent | Stable for HPPA (bug #184119). (diff) | |
download | gentoo-2-8b9e460f93095a5004e3749746922c1be05e122d.tar.gz gentoo-2-8b9e460f93095a5004e3749746922c1be05e122d.tar.bz2 gentoo-2-8b9e460f93095a5004e3749746922c1be05e122d.zip |
Added pyzord_getopt.patch for better command line handling
(Portage version: 2.1.3_rc6)
Diffstat (limited to 'dev-python/pyzor')
-rw-r--r-- | dev-python/pyzor/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/pyzor/files/pyzord_getopt.patch | 24 | ||||
-rw-r--r-- | dev-python/pyzor/pyzor-0.4.0-r3.ebuild | 3 |
3 files changed, 31 insertions, 2 deletions
diff --git a/dev-python/pyzor/ChangeLog b/dev-python/pyzor/ChangeLog index 783918b7bcc1..fac8a8d5e536 100644 --- a/dev-python/pyzor/ChangeLog +++ b/dev-python/pyzor/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/pyzor # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/ChangeLog,v 1.35 2007/07/05 20:17:20 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/ChangeLog,v 1.36 2007/07/05 22:53:34 hawking Exp $ + + 05 Jul 2007; Ali Polatel <hawking@gentoo.org> +files/pyzord_getopt.patch, + pyzor-0.4.0-r3.ebuild: + Added pyzord_getopt.patch for better command line handling. 04 Jul 2007; Jeroen Roovers <jer@gentoo.org> pyzor-0.4.0-r3.ebuild: Stable for HPPA (bug #183892). diff --git a/dev-python/pyzor/files/pyzord_getopt.patch b/dev-python/pyzor/files/pyzord_getopt.patch new file mode 100644 index 000000000000..42b6fe4339f6 --- /dev/null +++ b/dev-python/pyzor/files/pyzord_getopt.patch @@ -0,0 +1,24 @@ +--- scripts/pyzord.orig 2002-09-08 06:33:44.000000000 +0300 ++++ scripts/pyzord 2007-07-06 01:31:06.000000000 +0300 +@@ -52,7 +52,11 @@ + # functions above, run below + + debug = 0 +-(options, args) = getopt.getopt(sys.argv[1:], 'dh:', ['homedir=']) ++try: ++ (options, args) = getopt.getopt(sys.argv[1:], 'hd', ['help','homedir=']) ++except getopt.GetoptError, err: ++ print str(err) ++ usage() + if len(args) != 0: + usage() + +@@ -61,7 +65,7 @@ + for (o, v) in options: + if o == '-d': + debug = 1 +- elif o == '-h': ++ elif o in ('-h', '--help'): + usage() + elif o == '--homedir': + specified_homedir = v diff --git a/dev-python/pyzor/pyzor-0.4.0-r3.ebuild b/dev-python/pyzor/pyzor-0.4.0-r3.ebuild index 89a82d607020..78366e16b156 100644 --- a/dev-python/pyzor/pyzor-0.4.0-r3.ebuild +++ b/dev-python/pyzor/pyzor-0.4.0-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/pyzor-0.4.0-r3.ebuild,v 1.9 2007/07/05 20:17:20 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyzor/pyzor-0.4.0-r3.ebuild,v 1.10 2007/07/05 22:53:34 hawking Exp $ inherit distutils eutils @@ -29,6 +29,7 @@ src_unpack() { epatch "${FILESDIR}/debian_mbox.patch" epatch "${FILESDIR}/handle_unknown_encodings.patch" + epatch "${FILESDIR}/pyzord_getopt.patch" epatch "${FILESDIR}/unknown_type.patch" # rfc822BodyCleanerTest doesn't work fine |