summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-06-01 12:00:12 -0700
committerZac Medico <zmedico@gentoo.org>2010-06-01 12:00:12 -0700
commitb8be7aff8677b021dc01d24ed8772891f7a3db02 (patch)
tree73bbbc70baf72e3d4cd306234bd177f5161645e5
parentAdd special handling for updates of Package.metadata['USE'], so that (diff)
downloadportage-idfetch-master.zip
portage-idfetch-master.tar.gz
portage-idfetch-master.tar.bz2
Move imports to the top.HEADmaster
-rw-r--r--pym/_emerge/FakeVartree.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/_emerge/FakeVartree.py b/pym/_emerge/FakeVartree.py
index 596006f..4dd6532 100644
--- a/pym/_emerge/FakeVartree.py
+++ b/pym/_emerge/FakeVartree.py
@@ -1,4 +1,4 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
import sys
@@ -8,6 +8,7 @@ from portage import os
from _emerge.Package import Package
from _emerge.PackageVirtualDbapi import PackageVirtualDbapi
from portage.dbapi.vartree import vartree
+from portage.update import grab_updates, parse_updates, update_dbentries
if sys.hexversion >= 0x3000000:
long = int
@@ -179,7 +180,6 @@ class FakeVartree(vartree):
return pkg
def grab_global_updates(portdir):
- from portage.update import grab_updates, parse_updates
updpath = os.path.join(portdir, "profiles", "updates")
try:
rawupdates = grab_updates(updpath)
@@ -192,7 +192,6 @@ def grab_global_updates(portdir):
return upd_commands
def perform_global_updates(mycpv, mydb, mycommands):
- from portage.update import update_dbentries
aux_keys = ["DEPEND", "RDEPEND", "PDEPEND"]
aux_dict = dict(zip(aux_keys, mydb.aux_get(mycpv, aux_keys)))
updates = update_dbentries(mycommands, aux_dict)