Morganamilo / paru

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

Paru trying to upgrade devel packages to old versions #779

Closed unquote7083 closed 1 year ago

unquote7083 commented 2 years ago

Affected Version

paru v1.11.0.r0.g1ecdd48 - libalpm v13.0.1 I also tried downgrade to old release 1.8.2 and still saw same issue

Description

Paru thinks old versions of devel packages are upgrades. Non devel packages seem fine.

Output

$ paru
:: Starting full system upgrade...
 there is nothing to do
:: Looking for AUR upgrades...
:: Looking for devel upgrades...
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

Aur (5)                                     Old Version               New Version               Make Only
aur/python-grpcio-tools                     1.46.1-1                  1.47.0-1                  No
aur/opensnitch-git                          1.6.0rc1.r8.4ce8b0e-1     1.5.0.r19.0aef656-1       No
aur/ungoogled-chromium                      102.0.5005.115-1          103.0.5060.53-1           No
aur/dolphin-emu-git                         5.0.r16677.g57750f3d8f-1  5.0.r16541.gbb2a3d35b0-1  No
aur/gnome-shell-extension-desktop-cube-git  r312.aa7dd19-1            r38.905a711-1             No
Morganamilo commented 2 years ago

1.5.0.r19.0aef656-1 Is newer than 1.6.0rc1.r8.4ce8b0e-1. packager needs to set to set an epoch.

Morganamilo commented 2 years ago

Actually that's a lie. The format did change a but but it's one dot away from the number that's changed. So not sure at the moment.

Morganamilo commented 2 years ago

so currently the verbosepkglists support doesn't list aur-dev or latest-commit like it would in upgrade menu. So this is just a devel update not labelled as such.

unquote7083 commented 2 years ago

I don't think verbosepkglists has to do with anything except made it immediately obvious that the devel packages were getting changed to older versions (and thanks for adding the feature btw, it's really nice to have)

opensnitch-git 1.6.0rc1.r8 > 1.5.0.r19 = downgrade dolphin-emu-git > 5.0.r16677 > 5.0.r16541 = downgrade gnome-shell-extension-desktop-cube-git r312 > r38 = downgrade

Morganamilo commented 2 years ago

That's just how -git packages work

unquote7083 commented 2 years ago

Can you be more specific? How do they work?

Morganamilo commented 2 years ago

They fetch the latest git commit at build time.

Morganamilo commented 2 years ago

Prove it. Show the output of it building.

unquote7083 commented 2 years ago

Alright I figured out how it works. Paru just shows the version of the package last uploaded to the AUR, which is confusing for devel packages because it's not the "new version".

Maybe less confusing if you could state the new version as "devel upgrade" for devel packages where the PKGBUILD hasn't changed in the AUR since last install.

Morganamilo commented 2 years ago

so currently the verbosepkglists support doesn't list aur-dev or latest-commit like it would in upgrade menu. So this is just a devel update not labelled as such.

Upgrade menu does this as noted here.

unquote7083 commented 2 years ago

Yeah I get that now. I'm stating a suggestion to make it less confusing in the meantime, there's no added value to show a version older than what's installed.

Morganamilo commented 1 year ago

The normal upgrade printing also print's latest-commit for devel upgrades now