From 7a6a2598c417b0079036a37e3203d3451bb49654 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 26 Sep 2009 23:37:34 +0000 Subject: Bug #286522 - Check all portdbapi.findname return values in case it returns None, and raise 'ebuild not found' exceptions when necessary. svn path=/main/trunk/; revision=14442 --- pym/_emerge/EbuildBuild.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pym/_emerge/EbuildBuild.py') diff --git a/pym/_emerge/EbuildBuild.py b/pym/_emerge/EbuildBuild.py index 55c20ec09..930b5c6df 100644 --- a/pym/_emerge/EbuildBuild.py +++ b/pym/_emerge/EbuildBuild.py @@ -37,7 +37,9 @@ class EbuildBuild(CompositeTask): portdb = root_config.trees[tree].dbapi settings.setcpv(pkg) settings.configdict["pkg"]["EMERGE_FROM"] = pkg.type_name - ebuild_path = portdb.findname(self.pkg.cpv) + ebuild_path = portdb.findname(pkg.cpv) + if ebuild_path is None: + raise AssertionError("ebuild not found for '%s'" % pkg.cpv) self._ebuild_path = ebuild_path prefetcher = self.prefetcher -- cgit v1.2.3-1-g7c22