Skip to content
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

In Sysupgrade prompt show explicitly installed packages first #825

Open
Anarky opened this issue Aug 11, 2024 · 1 comment
Open

In Sysupgrade prompt show explicitly installed packages first #825

Anarky opened this issue Aug 11, 2024 · 1 comment

Comments

@Anarky
Copy link

Anarky commented Aug 11, 2024

pikaur -Vq

Pikaur v1.23
Pacman v6.1.0 - libalpm v14.0.0 - pyalpm v0.10.6
Description:

Would it be possible to add an option to show explicitly installed packages first during an upgrade?

I tried to peruse the code, if you can give me some pointers I can try to implement it myself.

@actionless
Copy link
Owner

actionless commented Aug 12, 2024

def __call__(self) -> str:
self.pformat_warned_packages()
self.pformat_replacements()
self.pformat_repo()
self.pformat_thirdaprty_repo()
self.pformat_aur()
self.pformat_total_size()
return "\n".join(self.result)

https://github.com/actionless/pikaur?tab=readme-ov-file#upgradesorting-default-versiondiff

user_chosen_sorting = user_config.sync.UpgradeSorting
if user_chosen_sorting == UpgradeSortingValues.PKGNAME:
sort_by = pkg_update.name
elif user_chosen_sorting == UpgradeSortingValues.REPO:
sort_by = (
pkg_update.repository or "zzz_(aur)",
pkg_update.name,
)

@actionless actionless changed the title Feature request: show explicitly installed packages first In Sysupgrade prompt show explicitly installed packages first Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants