openSUSE / obs-service-set_version

An OBS source service: Update spec file version
GNU General Public License v2.0
5 stars 38 forks source link

PKGBUILD release number is wrong #96

Open hawkeye116477 opened 4 months ago

hawkeye116477 commented 4 months ago

Arch Linux's pkgbuild should start with 1, but currently is always 0. It would be good if it will also autoincrement just like it's done for Debian and RPM packages. https://wiki.archlinux.org/title/PKGBUILD#pkgrel I also see Revision detection failed with error: " [Errno 2] No such file or directory: '.osc/_files' ".

TobiPeterG commented 2 months ago

I have this issue on openSUSE TW as well. I have this spec config:

%if 0%{?is_kotd}
Release:        <RELEASE>.g%{short_git_commit}
%else
Release:        0
%endif

Which becomes

%if 0%{?is_kotd}
Release:        0%{short_git_commit}
%else
Release:        0
%endif

However, now the substitution doesn't work anymore. It would be great if the Release variable wasn't altered with.

My project: https://build.opensuse.org/package/show/devel:microos:yuga:unstable/kernel-yuga