summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/EbuildBuildDir.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/_emerge/EbuildBuildDir.py')
-rw-r--r--pym/_emerge/EbuildBuildDir.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/_emerge/EbuildBuildDir.py b/pym/_emerge/EbuildBuildDir.py
index af3ce0792..921cf807f 100644
--- a/pym/_emerge/EbuildBuildDir.py
+++ b/pym/_emerge/EbuildBuildDir.py
@@ -9,7 +9,7 @@ import errno
class EbuildBuildDir(SlotObject):
- __slots__ = ("dir_path", "scheduler", "settings",
+ __slots__ = ("scheduler", "settings",
"locked", "_catdir", "_lock_obj")
def __init__(self, **kwargs):
@@ -26,7 +26,9 @@ class EbuildBuildDir(SlotObject):
if self._lock_obj is not None:
raise self.AlreadyLocked((self._lock_obj,))
- dir_path = self.dir_path
+ dir_path = self.settings.get('PORTAGE_BUILDDIR')
+ if not dir_path:
+ raise AssertionError('PORTAGE_BUILDDIR is unset')
catdir = os.path.dirname(dir_path)
self._catdir = catdir