From 6b69d2cc8bf891ab6ef3a33d8197ca7be82ea822 Mon Sep 17 00:00:00 2001 From: Jason Stubbs Date: Fri, 23 Dec 2005 11:55:31 +0000 Subject: Check if the specified package follows correct syntax and error out if it doesn't. svn path=/main/trunk/; revision=2440 --- bin/ebuild | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') 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" -- cgit v1.2.3-1-g7c22