summaryrefslogtreecommitdiffstats
path: root/bin/ebuild
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-12-23 11:55:31 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-12-23 11:55:31 +0000
commit6b69d2cc8bf891ab6ef3a33d8197ca7be82ea822 (patch)
tree528444ca335743290408c58fe3e1c632766875e8 /bin/ebuild
parent853882e3805e31de0e732b5467cd6d8a76bb2a86 (diff)
downloadportage-6b69d2cc8bf891ab6ef3a33d8197ca7be82ea822.tar.gz
portage-6b69d2cc8bf891ab6ef3a33d8197ca7be82ea822.tar.bz2
portage-6b69d2cc8bf891ab6ef3a33d8197ca7be82ea822.zip
Check if the specified package follows correct syntax and error out if it
doesn't. svn path=/main/trunk/; revision=2440
Diffstat (limited to 'bin/ebuild')
-rwxr-xr-xbin/ebuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ebuild b/bin/ebuild
index 603212e25..438582cb3 100755
--- a/bin/ebuild
+++ b/bin/ebuild
@@ -35,6 +35,10 @@ ebuild_split = ebuild.split("/")
del ebuild_split[-2]
cpv = "/".join(ebuild_split[-2:])[:-7]
+if not portage.catpkgsplit(cpv):
+ print "!!! %s does not follow correct package syntax." % (cpv)
+ sys.exit(1)
+
if ebuild.startswith(portage.root + portage_const.VDB_PATH):
mytree = "vartree"