Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arch Linux / makepkg: rel is always set 0 #67

Closed
Letterus opened this issue Feb 24, 2021 · 2 comments · Fixed by #78
Closed

Arch Linux / makepkg: rel is always set 0 #67

Letterus opened this issue Feb 24, 2021 · 2 comments · Fixed by #78

Comments

@Letterus
Copy link

This service/script always sets "rel" to zero instead of reading it from pkgbuild file or the source service.

_replace_tag(filename, "pkgrel", "0")

This somewhat breaks Arch Linux packaging, because on updating a package I now have to update the version number of the source while it should only be the number of "rel".

Best would be if it would read this number from pkbuild file and increment it as long as the version of the sources remain the same.

@portaloffreedom
Copy link
Contributor

As a quick fix I would be content with setting pkgrel to the OBS revision number, it would never reset to zero, but updates would work correctly. If someone can help me understand how to get the revision number in python (reading a file? environment variable?) I can make the PR myself.

@Letterus
Copy link
Author

Letterus commented Jun 3, 2022

Looks good to me. Pinging @M0ses for review, please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants