From: Jason Stubbs Date: Fri, 23 Dec 2005 11:55:31 +0000 (-0000) Subject: Check if the specified package follows correct syntax and error out if it X-Git-Tag: v2.1_pre2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b69d2cc8bf891ab6ef3a33d8197ca7be82ea822;p=portage.git Check if the specified package follows correct syntax and error out if it doesn't. svn path=/main/trunk/; revision=2440 --- 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"