paru icon indicating copy to clipboard operation
paru copied to clipboard

Add a new option to ignore downgrading package with the suffix -git when using -Suu

Open Zesko opened this issue 2 years ago • 3 comments

Have you checked the readme and man page for this feature? Yes

Have you checked previous issues for this feature? Yes

  1. Install sddm-git from AUR. paru -S sddm-git
  2. 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

Zesko avatar Feb 12 '23 17:02 Zesko

Why even use -uu in the first place?

Morganamilo avatar Apr 19 '23 10:04 Morganamilo

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.

Zesko avatar Apr 19 '23 10:04 Zesko

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".

Zesko avatar Apr 19 '23 10:04 Zesko