From f56ad823861c52d6dc4fe5441a35e205699a6a62 Mon Sep 17 00:00:00 2001 From: Felitendo Date: Fri, 21 Aug 2026 08:24:57 +0200 Subject: [PATCH] nextcloud-native-bin: correct the prerelease sorting note vercmp sorts 0.1.0alpha.2 older than a later plain 0.1.0, so the prereleases upgrade on their own and no epoch bump is needed. --- nextcloud-native-bin/pkg.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nextcloud-native-bin/pkg.sh b/nextcloud-native-bin/pkg.sh index 1bbe288..f4207c2 100644 --- a/nextcloud-native-bin/pkg.sh +++ b/nextcloud-native-bin/pkg.sh @@ -12,9 +12,10 @@ # the versioned "v*" tags are packaged; nightlies would push several AUR # updates a day and cannot be checksummed reliably. # -# pkgver drops the hyphen from the tag (v0.1.0-alpha.2 -> 0.1.0alpha.2). That -# sorts newer than a later plain 0.1.0, so the first stable release of a -# version that was packaged as a prerelease needs an epoch bump. +# pkgver drops the hyphen from the tag (v0.1.0-alpha.2 -> 0.1.0alpha.2). +# pacman sorts that older than a later plain 0.1.0 (`vercmp 0.1.0alpha.2 0.1.0` +# is -1, the trailing alphabetic segment loses), so the prereleases upgrade to +# the eventual stable release on their own and no epoch is needed. UPSTREAM_REPO="Obiente/nc-native"