Lines 7118-7125
Link Here
|
7118 |
#self.root=settings["PORTDIR"] |
7118 |
#self.root=settings["PORTDIR"] |
7119 |
self.porttree_root = os.path.realpath(porttree_root) |
7119 |
self.porttree_root = os.path.realpath(porttree_root) |
7120 |
|
7120 |
|
7121 |
self.depcachedir = self.mysettings.depcachedir[:] |
7121 |
self.depcachedir = os.path.realpath(self.mysettings.depcachedir) |
7122 |
|
7122 |
|
|
|
7123 |
if os.environ.get("SANDBOX_ON") == "1": |
7124 |
# Make api consumers exempt from sandbox violations |
7125 |
# when doing metadata cache updates. |
7126 |
sandbox_write = os.environ.get("SANDBOX_WRITE", "").split(":") |
7127 |
if self.depcachedir not in sandbox_write: |
7128 |
sandbox_write.append(self.depcachedir) |
7129 |
os.environ["SANDBOX_WRITE"] = \ |
7130 |
":".join(filter(None, sandbox_write)) |
7131 |
|
7123 |
self.tmpfs = self.mysettings["PORTAGE_TMPFS"] |
7132 |
self.tmpfs = self.mysettings["PORTAGE_TMPFS"] |
7124 |
if self.tmpfs and not os.path.exists(self.tmpfs): |
7133 |
if self.tmpfs and not os.path.exists(self.tmpfs): |
7125 |
self.tmpfs = None |
7134 |
self.tmpfs = None |