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 | |
parent | 369ee750dc5a991160d5d01ddda964bcb47c8ecb (diff) | |
download | portage-518ad86c5649946f3cbbfdf1196b32f3970fd35a.tar.gz portage-518ad86c5649946f3cbbfdf1196b32f3970fd35a.tar.bz2 portage-518ad86c5649946f3cbbfdf1196b32f3970fd35a.zip |
For bug #172886, catch GetoptError. (trunk r6684)
svn path=/main/branches/2.1.2/; revision=6701
-rwxr-xr-x | bin/ebuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ebuild b/bin/ebuild index b8b6cac41..8afba3afe 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -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 |