summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ebuild b/bin/ebuild
index 43beb3149..c10705d0b 100755
--- a/bin/ebuild
+++ b/bin/ebuild
@@ -26,6 +26,7 @@ def debug_signal(signum, frame):
pdb.set_trace()
signal.signal(signal.SIGUSR1, debug_signal)
+import imp
import optparse
import os
@@ -121,7 +122,7 @@ if ebuild_portdir not in portage.portdb.porttrees:
os.environ.get("PORTDIR_OVERLAY","") + " " + ebuild_portdir
print("Appending %s to PORTDIR_OVERLAY..." % ebuild_portdir)
portage.close_portdbapi_caches()
- reload(portage)
+ imp.reload(portage)
del portage.portdb.porttrees[1:]
if ebuild_portdir != portage.portdb.porttree_root:
portage.portdb.porttrees.append(ebuild_portdir)