summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/EbuildBuildDir.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-14 07:49:30 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-14 07:49:30 -0700
commit25dae8949181fd3db25cabbdb9b95dfdd04c313c (patch)
tree5c9a5dde938f435c25fb50aa91f492ca7e2b55e6 /pym/_emerge/EbuildBuildDir.py
parent345e3ace7dd2885f95a6b022c2eefa110eb48c8e (diff)
downloadportage-25dae8949181fd3db25cabbdb9b95dfdd04c313c.tar.gz
portage-25dae8949181fd3db25cabbdb9b95dfdd04c313c.tar.bz2
portage-25dae8949181fd3db25cabbdb9b95dfdd04c313c.zip
Make EbuildBuildDir use the PORTAGE_BUILDDIR variable instead of the
dir_path attribute.
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