Use imp.reload() instead of reload() for compatibility with Python 3.
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Fri, 25 Sep 2009 06:18:25 +0000 (06:18 -0000)
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Fri, 25 Sep 2009 06:18:25 +0000 (06:18 -0000)
svn path=/main/trunk/; revision=14426

bin/ebuild

index 43beb314981b0931729142d5843208a94bdd9869..c10705d0b85870617746ddeaf1eb8da36dc62409 100755 (executable)
@@ -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)