projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d0a0db
)
catch GetoptError
author
Marius Mauch
<genone@gentoo.org>
Thu, 31 May 2007 01:26:33 +0000
(
01:26
-0000)
committer
Marius Mauch
<genone@gentoo.org>
Thu, 31 May 2007 01:26:33 +0000
(
01:26
-0000)
svn path=/main/trunk/; revision=6684
bin/ebuild
patch
|
blob
|
history
diff --git
a/bin/ebuild
b/bin/ebuild
index 80feb3563b354d3a7533b6f4f102820c2e85f500..442dd46448b099ef9434a8b906469e7966616e7e 100755
(executable)
--- 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