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

Ability to specify only desired semver level for -gt or has_update() #43

Open
dvershinin opened this issue Jan 19, 2021 · 0 comments
Open

Comments

@dvershinin
Copy link
Owner

Most RPM-based auto-builds should only work with minor semantic version updates, because major updates bring API-incompatible changes, and as such aren't very suitable for distros aiming stability.

E.g.

# return success for any version newer than 1.2.3 (default)
lastversion repo --semver major -gt 1.2.3 

# return success for any version newer than 1.2.3 but below 2.0.0
lastversion repo --semver minor -gt 1.2.3

# return success only for version 1.2.4 to 1.2.9
lastversion repo --semver patch -gt 1.2.3 

Returned another exit status code 4 if -gt "failed" due to semver constraints. (so that it is possible to script things like sending an email if major release is out to review whether it should be re-incorporated to build)

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

No branches or pull requests

1 participant