aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-02-01 13:23:39 -0800
committerZac Medico <zmedico@gentoo.org>2020-02-01 13:30:23 -0800
commit44076b9432a1361a39515927de2b60baa2fbddb9 (patch)
treee5627282070b89515a33cece956a27dd063c44ae /lib/_emerge/depgraph.py
parentdepclean: do not eliminate upgrades (bug 707108) (diff)
downloadportage-44076b9432a1361a39515927de2b60baa2fbddb9.tar.gz
portage-44076b9432a1361a39515927de2b60baa2fbddb9.tar.bz2
portage-44076b9432a1361a39515927de2b60baa2fbddb9.zip
cpv_expand: treat GLEP 81 acct-* categories like virtual (bug 691798)
This solves common name collisions introduced by GLEP 81 user and group management packages. TODO: Provide user configuration so that users an ignore name collisions with selected categories like app-emacs or dev-haskell. Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/_emerge/depgraph.py')
-rw-r--r--lib/_emerge/depgraph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py
index cae1c4470..1eaf20035 100644
--- a/lib/_emerge/depgraph.py
+++ b/lib/_emerge/depgraph.py
@@ -4212,7 +4212,7 @@ class depgraph(object):
if len(expanded_atoms) > 1:
number_of_virtuals = 0
for expanded_atom in expanded_atoms:
- if expanded_atom.cp.startswith("virtual/"):
+ if expanded_atom.cp.startswith(("acct-group/", "acct-user/", "virtual/")):
number_of_virtuals += 1
else:
candidate = expanded_atom