Add a new option to ignore downgrading package with the suffix -git when using -Suu
Have you checked the readme and man page for this feature? Yes
Have you checked previous issues for this feature? Yes
- Install
sddm-gitfrom AUR.paru -S sddm-git - Run
paru -Syuu, the output:
...
1 aur/sddm-git 0.19.0.199.g0a54d3a-1 -> 0.19.0.170.g3e48649-1
:: Packages to exclude (eg: 1 2 3, 1-3):
I installed sddm-git with the last version from git repo, but it does not match the version from PKGBUILD which isn't updated.
My suggestion: /etc/paru.conf would add a new option IgnoreDowngradeWithSuffixes to ignore downgrading package with the suffix *-git.
paru version:
paru v1.11.2 - libalpm v13.0.2
paru conf: /etc/paru.conf
#
# GENERAL OPTIONS
#
[options]
PgpFetch
Devel
Provides
DevelSuffixes = -git -cvs -svn -bzr -darcs -always -hg -fossil
#AurOnly
#BottomUp
#RemoveMake
#SudoLoop
#UseAsk
#SaveChanges
CombinedUpgrade
#CleanAfter
UpgradeMenu
#NewsOnUpgrade
#LocalRepo
#Chroot
#Sign
#SignDb
#KeepRepoCache
#
# Binary OPTIONS
#
#[bin]
#FileManager = vifm
#MFlags = --skippgpcheck
#Sudo = doas
Why even use -uu in the first place?
It would be useful in some situations such as downgrading to a previous version of a package to fix compatibility issues and bugs when the package was rolled back in a repo.
I am not sure yet, if Arch dropped support for "-uu", but I do not understand why it still works. "-uu" works differently than "-u".