Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:munix9:test
obs-service-set_version
skip-change-pkgrel.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File skip-change-pkgrel.patch of Package obs-service-set_version
diff -ruNp a/set_version b/set_version --- a/set_version +++ b/set_version @@ -439,10 +439,15 @@ if __name__ == '__main__': parser.add_argument('--fromfile', help='detect version based on the ' 'file contents and regex') + parser.add_argument('--skip-change-pkgrel', + choices=['yes', 'no'], default='no', + help='skip the change of the pkgrel variable in PKGBUILD ' + '(only relevant for Arch builds)') args = vars(parser.parse_args()) version = args['version'] revision = args['revision'] + skip_change_pkgrel = bool(args['skip_change_pkgrel'] == 'yes') outdir = args['outdir'] @@ -527,4 +532,5 @@ if __name__ == '__main__': _replace_tag(filename, "md5sums", "('SKIP')") _replace_tag(filename, "sha256sums", "('SKIP')") _replace_tag(filename, "pkgver", version) - _replace_tag(filename, "pkgrel", "0") + if not skip_change_pkgrel: + _replace_tag(filename, "pkgrel", "0") diff -ruNp a/set_version.service b/set_version.service --- a/set_version.service +++ b/set_version.service @@ -19,5 +19,9 @@ Can be used after download_url or tar_sc <description>This regex can be used to autodetect the version from the source dir inside the source file or the source file directly.</description> </parameter> + <parameter name="skip-change-pkgrel"> + <description>Skip the change of the pkgrel variable in PKGBUILD (only relevant for Arch builds).</description> + <allowedvalue>yes</allowedvalue> + </parameter> </service>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor