aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-02-14 16:53:00 -0800
committerZac Medico <zmedico@gentoo.org>2020-02-14 16:56:45 -0800
commitb3a945a9dad98a6d2064a9120206ad3cc9d46675 (patch)
treedc2c18b74798e57a94e5ebbfba831c98d954856e /lib/_emerge/depgraph.py
parentdepclean: ensure consistency with update actions (bug 649622) (diff)
downloadportage-b3a945a9dad98a6d2064a9120206ad3cc9d46675.tar.gz
portage-b3a945a9dad98a6d2064a9120206ad3cc9d46675.tar.bz2
portage-b3a945a9dad98a6d2064a9120206ad3cc9d46675.zip
_expand_set_args: un-reverse nested set traversal
Un-reverse traversal order for @profile @selected @system. Bug: https://bugs.gentoo.org/649622 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/_emerge/depgraph.py')
-rw-r--r--lib/_emerge/depgraph.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py
index 27696ad40..a8ccd270d 100644
--- a/lib/_emerge/depgraph.py
+++ b/lib/_emerge/depgraph.py
@@ -2788,10 +2788,8 @@ class depgraph(object):
# Traverse nested sets and add them to the stack
# if they're not already in the graph. Also, graph
- # edges between parent and nested sets. Traverse in
- # sorted order for consistent results, using reverse
- # sort since we pop these sets from a stack.
- for token in sorted(arg.pset.getNonAtoms(), reverse=True):
+ # edges between parent and nested sets.
+ for token in sorted(arg.pset.getNonAtoms()):
if not token.startswith(SETPREFIX):
continue
s = token[len(SETPREFIX):]