Morganamilo / paru

Feature packed AUR helper
GNU General Public License v3.0
6.07k stars 232 forks source link

Paru doesn't recognize git packages with "latest-n" and a pkgver() function to have its package version increased #759

Closed RubenKelevra closed 2 years ago

RubenKelevra commented 2 years ago

Affected Version

paru v1.10.0 - libalpm v13.0.1

Checklist

Description

I maintain an aur package which uses git and wanted to change to the easier "latest" version plus increasing pkgrel. Which is used by other packages as well, example:

https://aur.archlinux.org/packages/abricotine-git

Issue is, if I push a new latest-n with an increased pkgrel paru doesn't recognize this as an update, which I feel is wrong. Paru should check the old vs the new aur-pkg identifier and if it has changed AND is now version wise greater than before make an update.

But it seems to be compared to the git version of the installed package, which is 1:0.13.0rc1.r18.ga72753bad-1 in my case and seems to be bigger than 1:latest-2 thus paru isn't considering this as an update.

Steps to reproduce:

Effect: Paru won't recognize the update in the aur as update.

Output

not applicable

Config-Files

Paru.conf

=> paru uses system-config file: /etc/paru.conf
[options]
PgpFetch
Devel
Provides
DevelSuffixes = -git -cvs -svn -bzr -darcs -always -hg -fossil
BottomUp
RemoveMake
SudoLoop
CombinedUpgrade
CleanAfter
UpgradeMenu
NewsOnUpgrade
SkipReview
BatchInstall
LocalRepo
Chroot = /var/lib/paru/aur_chroot
[bin]
FileManager = nnn

Pacman.conf

[options]
HoldPkg     = pacman glibc
Architecture = auto
IgnorePkg = python2 mono jre libva-intel-driver jre11-openjdk jdk11-openjdk jre8-adoptopenjdk jdk8-adoptopenjdk jre11-openjdk-headless jre8-adoptopenjdk-headless nodejs-lts-gallium
NoExtract   = usr/lib/firefox/fonts/TwemojiMozilla.ttf
Color
ILoveCandy
VerbosePkgLists
ParallelDownloads = 2
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
[core-x86-64-v3]
Include = /etc/pacman.d/alhp-mirrorlist
[extra-x86-64-v3]
Include = /etc/pacman.d/alhp-mirrorlist
[community-x86-64-v3]
Include = /etc/pacman.d/alhp-mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
[multilib]
Include = /etc/pacman.d/mirrorlist
[endeavouros]
SigLevel = PackageRequired
Include = /etc/pacman.d/endeavouros-mirrorlist
[chaotic-aur]
Include = /etc/pacman.d/chaotic-mirrorlist
[aur-chroot-builds]
SigLevel = PackageOptional DatabaseOptional
Server = file:///var/lib/paru/aur_chroot
Morganamilo commented 2 years ago

latest is the smaller version number so this is expected