Fix missing imports.
authorZac Medico <zmedico@gentoo.org>
Tue, 13 Feb 2007 19:22:24 +0000 (19:22 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 13 Feb 2007 19:22:24 +0000 (19:22 -0000)
svn path=/main/trunk/; revision=5960

pym/portage/dbapi/vartree.py

index 4afe4a2471655c4b3586fd97f8aeb676d970ccab..99cd9e7be83d692dc1c3290a64f5534844681ada 100644 (file)
@@ -1,6 +1,6 @@
 from portage.checksum import perform_md5
-from portage.const import VDB_PATH, CACHE_PATH
-from portage.data import portage_gid, portage_uid
+from portage.const import CACHE_PATH, CONFIG_MEMORY_FILE, PRIVATE_PATH, VDB_PATH
+from portage.data import portage_gid, portage_uid, secpass
 from portage.dbapi import dbapi
 from portage.dep import dep_getslot, use_reduce, paren_reduce, isvalidatom, \
        isjustname, dep_getkey, match_from_list
@@ -1505,7 +1505,7 @@ class dblink(object):
                destroot = normalize_path(destroot).rstrip(sep) + sep
                
                # this is supposed to merge a list of files.  There will be 2 forms of argument passing.
-               if type(stufftomerge) == types.StringType:
+               if isinstance(stufftomerge, basestring):
                        #A directory is specified.  Figure out protection paths, listdir() it and process it.
                        mergelist = listdir(join(srcroot, stufftomerge))
                        offset = stufftomerge