Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pacman: Add support for install reason #4956
Pacman: Add support for install reason #4956
Changes from all commits
2dc8166
449d53e
d443866
a15c262
b3a6ae9
8d37ea2
5a6755d
864f22e
201bdfa
8503a35
f999cd8
3747864
f12448a
d90a5ea
4f46743
1a8aa14
2eee6ff
dfbd46d
a06a62d
9687094
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only case, where the returned list of packages is sorted.
In my opinion, the returned list should be identical to the one returned if check mode is disabled.
The sorting was introduced in this commit: c28abd8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jraby Is there any reason why you only sorted the package list in check mode and not in normal mode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it was an oversight on my part.
The idea of the sort was to make it easier to find a package, but maybe having the output in the same order as specified in the tasks would make more sense? (their dependencies would be sprinkled throughout however)
But I don't care either way as long as check vs normal returns the same order. (the current situation makes no sense)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As restoring the original order would require some effort and deciding over a strategy for dependencies and just combining the lists would result in an order hard to understand for outsiders, I decided to go for sorting in dfbd46d, especially as the diff is also sorted.
In the end, this may be irrelevant, since most users probably won't even look at the list and the other users might be experienced enough to use ansible's
sort
,intersect
ordifference
feature to automatically get the desired results.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not have
and remove the explicit
rc
check below?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know. The same code is used in various other places:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess all these places should be changed then. But we can also do that later.