diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-05-31 21:32:23 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-05-31 21:32:23 +0000 |
commit | 518ad86c5649946f3cbbfdf1196b32f3970fd35a (patch) | |
tree | 4659561727c5f39a2fe467c0f38062e703c445ab /bin/ebuild | |
parent | Make dep_zapdeps() pull SLOT from the correct dbapi instance when it falls ba... (diff) | |
download | portage-multirepo-518ad86c5649946f3cbbfdf1196b32f3970fd35a.tar.gz portage-multirepo-518ad86c5649946f3cbbfdf1196b32f3970fd35a.tar.bz2 portage-multirepo-518ad86c5649946f3cbbfdf1196b32f3970fd35a.zip |
For bug #172886, catch GetoptError. (trunk r6684)
svn path=/main/branches/2.1.2/; revision=6701
Diffstat (limited to 'bin/ebuild')
-rwxr-xr-x | bin/ebuild | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -12,7 +12,11 @@ if len(sys.argv) <= 2: sys.exit(1) -opts, pargs = getopt.getopt(sys.argv[1:], '', ['debug', 'force']) +try: + opts, pargs = getopt.getopt(sys.argv[1:], '', ['debug', 'force']) +except getopt.GetoptError, e: + print e + sys.exit(1) debug = ("--debug",'') in opts force = ("--force",'') in opts |