forked from pool/obs-service-replace_using_package_version
David Cassany
70279b6f23
* Bump version: 0.0.10 → 0.0.11 * Fix shebang of service to /usr/bin/python3 * Bump version: 0.0.9 → 0.0.10 * Unrestrict dev dependencies * Add support for replacing package versions by capability * Bump actions/setup-python from 5.2.0 to 5.3.0 * Bump actions/setup-python from 5.1.1 to 5.2.0 * Bump actions/setup-python from 5.1.0 to 5.1.1 * Bump actions/setup-python from 5.0.0 to 5.1.0 * Bump Gr1N/setup-poetry from 8 to 9 * Bump actions/cache from 3 to 4 * Whitespace cleanup * Add instructions to update new releases in OBS * How to cut a new release OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/obs-service-replace_using_package_version?expand=0&rev=25
37 lines
1.9 KiB
Desktop File
37 lines
1.9 KiB
Desktop File
<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>
|