Lines 131-137
ebuild = os.path.join(ebuild_portdir, *ebuild.split(os.path.sep)[-3:])
Link Here
|
131 |
# Make sure that portdb.findname() returns the correct ebuild. |
131 |
# Make sure that portdb.findname() returns the correct ebuild. |
132 |
if ebuild_portdir not in portage.portdb.porttrees: |
132 |
if ebuild_portdir not in portage.portdb.porttrees: |
133 |
os.environ["PORTDIR_OVERLAY"] = \ |
133 |
os.environ["PORTDIR_OVERLAY"] = \ |
134 |
os.environ.get("PORTDIR_OVERLAY","") + " " + ebuild_portdir |
134 |
os.environ.get("PORTDIR_OVERLAY","") + " " + portage._unicode_encode(ebuild_portdir, encoding=portage._encodings['fs']) |
135 |
print("Appending %s to PORTDIR_OVERLAY..." % ebuild_portdir) |
135 |
print("Appending %s to PORTDIR_OVERLAY..." % ebuild_portdir) |
136 |
portage.close_portdbapi_caches() |
136 |
portage.close_portdbapi_caches() |
137 |
imp.reload(portage) |
137 |
imp.reload(portage) |