summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-05-31 01:26:33 +0000
committerMarius Mauch <genone@gentoo.org>2007-05-31 01:26:33 +0000
commit28b09fcc5b0b45fbea9725e68e87b58d49cbe197 (patch)
treefceda45e68584241a9fe6d6b834b430aed1006f1
parent3d0a0dbd105c9346b6dc3ac1205f00453c2e7b51 (diff)
downloadportage-28b09fcc5b0b45fbea9725e68e87b58d49cbe197.tar.gz
portage-28b09fcc5b0b45fbea9725e68e87b58d49cbe197.tar.bz2
portage-28b09fcc5b0b45fbea9725e68e87b58d49cbe197.zip
catch GetoptError
svn path=/main/trunk/; revision=6684
-rwxr-xr-xbin/ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ebuild b/bin/ebuild
index 80feb3563..442dd4644 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