commit: e12f6c3626da36ba558782ff52278be1566c5125
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 16 10:04:58 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Mar 16 21:10:37 2018 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=e12f6c36
portage.dbapi.vartree: Remove one more unfounded virtual case
Reviewed-by: Zac Medico <zmedico <AT> gentoo.org>
pym/portage/dbapi/vartree.py | 7 -------
1 file changed, 7 deletions(-)
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 8b1b77f7d..6406682d6 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -3747,13 +3747,6 @@ class dblink(object):
is_binpkg = self.settings.get("EMERGE_FROM") == "binary"
slot = ''
for var_name in ('CHOST', 'SLOT'):
- if var_name == 'CHOST' and self.cat == 'virtual':
- try:
- os.unlink(os.path.join(inforoot,
var_name))
- except OSError:
- pass
- continue
-
try:
with io.open(_unicode_encode(
os.path.join(inforoot, var_name),