summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/Binpkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/_emerge/Binpkg.py')
-rw-r--r--pym/_emerge/Binpkg.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/Binpkg.py b/pym/_emerge/Binpkg.py
index 06f0fd28c..aadd625bf 100644
--- a/pym/_emerge/Binpkg.py
+++ b/pym/_emerge/Binpkg.py
@@ -39,7 +39,9 @@ class Binpkg(CompositeTask):
self._bintree = self.pkg.root_config.trees[self._tree]
self._verify = not self.opts.pretend
- dir_path = os.path.join(settings["PORTAGE_TMPDIR"],
+ # Use realpath like doebuild_environment() does, since we assert
+ # that this is path is literally identical to PORTAGE_BUILDDIR.
+ dir_path = os.path.join(os.path.realpath(settings["PORTAGE_TMPDIR"]),
"portage", pkg.category, pkg.pf)
self._image_dir = os.path.join(dir_path, "image")
self._infloc = os.path.join(dir_path, "build-info")