expand_new_virt: fix vardbapi.root reference
authorZac Medico <zmedico@gentoo.org>
Tue, 25 Oct 2011 14:51:26 +0000 (07:51 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 25 Oct 2011 14:51:26 +0000 (07:51 -0700)
pym/portage/dbapi/_expand_new_virt.py

index 6d6a27de803821cdb4b9c0b8f636c77bb5a2d569..d379b4c1dbaf9a471d05c3786def578fa20bd653 100644 (file)
@@ -63,7 +63,8 @@ def expand_new_virt(vardb, atom):
 
                success, atoms = portage.dep_check(rdepend,
                        None, vardb.settings, myuse=valid_use,
-                       myroot=vardb.root, trees={vardb.root:{"porttree":vardb.vartree,
+                       myroot=vardb.settings['EROOT'],
+                       trees={vardb.settings['EROOT']:{"porttree":vardb.vartree,
                        "vartree":vardb.vartree}})
 
                if success: