summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-25 06:18:25 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-25 06:18:25 +0000
commit91901078b3d5bc198d7ca6bef062c902ed3d367e (patch)
treedd6bc319b8763997412ba68555a07341c59d8f13
parent30db2bb91d2ee497f3921233c0cc4eb950bae086 (diff)
downloadportage-91901078b3d5bc198d7ca6bef062c902ed3d367e.tar.gz
portage-91901078b3d5bc198d7ca6bef062c902ed3d367e.tar.bz2
portage-91901078b3d5bc198d7ca6bef062c902ed3d367e.zip
Use imp.reload() instead of reload() for compatibility with Python 3.
svn path=/main/trunk/; revision=14426
-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)