projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f903769
)
Bail out earlier if the file name argument doesn't end with '.ebuild'. Thanks
author
Zac Medico
<zmedico@gentoo.org>
Fri, 26 Dec 2008 21:14:35 +0000
(21:14 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 26 Dec 2008 21:14:35 +0000
(21:14 -0000)
to Diego 'Flameeyes' Pettenò for reporting.
svn path=/main/trunk/; revision=12350
bin/ebuild
patch
|
blob
|
history
diff --git
a/bin/ebuild
b/bin/ebuild
index 90c599e2647941d18063ace922cbafca34f6dc8e..ebb96f0bb3e9ef96b200f5bc8cf655f9a9f9d7cc 100755
(executable)
--- a/
bin/ebuild
+++ b/
bin/ebuild
@@
-82,6
+82,12
@@
if portage.settings["NOCOLOR"] in ("yes","true") or not sys.stdout.isatty():
portage.output.nocolor()
ebuild = pargs.pop(0)
+
+if not ebuild.endswith(".ebuild"):
+ portage.writemsg("'%s' does not end with '.ebuild'.\n" % \
+ (ebuild,), noiselevel=-1)
+ sys.exit(1)
+
if not os.path.isabs(ebuild):
mycwd = os.getcwd()
# Try to get the non-canonical path from the PWD evironment variable, since