Add printing for AUR packages #2717
Open
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.
Fixes #1744 and #2696. Adds support for printing AUR packages with
--printand--print-format. When printing AUR packages, local packages are differentiated from remote packages as local packages have all info that pacman prints, whereas remote packages don't (for example, there isn't a sha256sum as there is no pre-built package). For all remote packages, any formats specified that aren't supported are just removed with an empty string.A couple notes on how this differentiates from how pacman does print formatting:
%s, whereas pacman prints the download size. This is done because the download size is 0 for all AUR packages. As pacman already handles printing with the-Rand-Uops, it is only a mismatch for-S.Happy to discuss different approaches to handle these mismatches if desired. I also added some tests to make sure the correct code paths are entered when specifying upgrades, only AUR pkgs, only repo pkgs, and a mix of both.