summaryrefslogtreecommitdiffstats
path: root/bin/ebuild
diff options
context:
space:
mode:
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"