summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-05-31 21:32:23 +0000
committerZac Medico <zmedico@gentoo.org>2007-05-31 21:32:23 +0000
commit518ad86c5649946f3cbbfdf1196b32f3970fd35a (patch)
tree4659561727c5f39a2fe467c0f38062e703c445ab /bin/ebuild
parentMake dep_zapdeps() pull SLOT from the correct dbapi instance when it falls ba... (diff)
downloadportage-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-xbin/ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ebuild b/bin/ebuild
index b8b6cac4..8afba3af 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