Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r12355 - main/branches/2.1.6/bin
Date: Sat, 27 Dec 2008 18:27:54
Message-Id: E1LGdtB-0005IT-32@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-12-27 18:27:52 +0000 (Sat, 27 Dec 2008)
3 New Revision: 12355
4
5 Modified:
6 main/branches/2.1.6/bin/ebuild
7 Log:
8 Bail out earlier if the file name argument doesn't end with '.ebuild'. Thanks
9 to Diego 'Flameeyes' Petten?\195?\178 for reporting. (trunk r12350)
10
11 Modified: main/branches/2.1.6/bin/ebuild
12 ===================================================================
13 --- main/branches/2.1.6/bin/ebuild 2008-12-27 18:27:19 UTC (rev 12354)
14 +++ main/branches/2.1.6/bin/ebuild 2008-12-27 18:27:52 UTC (rev 12355)
15 @@ -82,6 +82,12 @@
16 portage.output.nocolor()
17
18 ebuild = pargs.pop(0)
19 +
20 +if not ebuild.endswith(".ebuild"):
21 + portage.writemsg("'%s' does not end with '.ebuild'.\n" % \
22 + (ebuild,), noiselevel=-1)
23 + sys.exit(1)
24 +
25 if not os.path.isabs(ebuild):
26 mycwd = os.getcwd()
27 # Try to get the non-canonical path from the PWD evironment variable, since