diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-25 06:18:25 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-25 06:18:25 +0000 |
commit | 91901078b3d5bc198d7ca6bef062c902ed3d367e (patch) | |
tree | dd6bc319b8763997412ba68555a07341c59d8f13 | |
parent | 30db2bb91d2ee497f3921233c0cc4eb950bae086 (diff) | |
download | portage-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-x | bin/ebuild | 3 |
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) |