Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
obs-service-replace_using_package_version.34131
replace_using_package_version.service
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File replace_using_package_version.service of Package obs-service-replace_using_package_version.34131
<service name="replace_using_package_version"> <summary>Replaces a regex with the version value of a package</summary> <description>This service replaces a given regex with the version value of a given package. Can be used to align the version of you package or image to the version of another package.</description> <parameter name="file"> <description>This is the file where the change will be applied</description> </parameter> <parameter name="regex"> <description>This is the regular expression used to parse the input file. It uses python re module syntax</description> </parameter> <parameter name="package"> <description>This is the package which version will be used as a replacement for the regex. If it is not found as a build dependency it will fallback to look for an *.obsinfo file with the package name (the *obsinfo file is generated by the obs_scm service). It fails if no version is found. </description> </parameter> <parameter name="parse-version"> <description>Parses the package version string to match the major.minor.patch format. Then any found match is used as the replacement string. It can be set to three different values: major, minor or patch. If set to major only the first numeric value will be used as the replacement (e.g. if version is 3.1.3 only 3 will be used). If set to minor only the first and second numeric values separated by a dot will be used (e.g. if version is 3.1~git_r125 only 3.1 will be used). If set to patch it will reach up to the first three numeric values separated with a dots.</description> </parameter> <parameter name="replacement"> <description>This parameter is an alternative to the package parameter, instead to look for a package version it will just use the given string for the regex replacement. It is mostly used to debug or test the regex.</description> </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