summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/EbuildBinpkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/_emerge/EbuildBinpkg.py')
-rw-r--r--pym/_emerge/EbuildBinpkg.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/EbuildBinpkg.py b/pym/_emerge/EbuildBinpkg.py
index 8d742d640..73297ed6b 100644
--- a/pym/_emerge/EbuildBinpkg.py
+++ b/pym/_emerge/EbuildBinpkg.py
@@ -18,7 +18,9 @@ class EbuildBinpkg(EbuildProcess):
root_config = pkg.root_config
portdb = root_config.trees["porttree"].dbapi
bintree = root_config.trees["bintree"]
- 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)
settings = self.settings
debug = settings.get("PORTAGE_DEBUG") == "1"