hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
305 stars 48 forks source link

AUR: need to update pkgrel #37

Closed coffebar closed 1 year ago

coffebar commented 1 year ago

When updating packages from yay, i get xdg-desktop-portal-hyprland-git update every time.

Package (1)                      Old Version     New Version     Net Change

xdg-desktop-portal-hyprland-git  r261.e1f145d-1  r261.e1f145d-1    0.00 MiB

Total Installed Size:  0.36 MiB
Net Upgrade Size:      0.00 MiB

You need to inc pkgrel to break this loop. Thanks.

vaxerski commented 1 year ago

@ThatOneCalculator

ThatOneCalculator commented 1 year ago

Just did AGAIN. ISTG if that doesnt solve it, it's the AUR's issue

coffebar commented 1 year ago

I see. The problem is not solved. Something is wrong with pkgver. I reviewed PKGBUILD and found pkgver=r261.ge1f145d. Not sure how this oneliner works:

pkgver() {
  cd "$_pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

but if I clone repo and run this, it will print r261.e1f145d Maybe pkgver=r261.ge1f145d shoud be changed to pkgver=r261.e1f145d and pkgrel to 4? I could be wrong, because I don't quite understand how it worked before

ThatOneCalculator commented 1 year ago

I still get r261.ge1f145d when printing out in a git clone :thinking:

ThatOneCalculator commented 1 year ago

Epoch'd it.

RedBlizard commented 1 year ago

Just did the update with paru that worked yay could not do the update.

coffebar commented 1 year ago

For me, it was updated successfully with yay!

Package (1)                      Old Version     New Version       Net Change
xdg-desktop-portal-hyprland-git  r261.e1f145d-1  1:r261.e1f145d-4   -0.01 MiB

@RedBlizard maybe you have a cache in yay

RedBlizard commented 1 year ago

yeah its fixed no issues anymore !!