1
0

- Fix grammar, update README and .service. Technically the name

should be changed as well, but that's just cosmetic.

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-kiwi_metainfo_helper?expand=0&rev=12
This commit is contained in:
Fabian Vogt 2020-08-27 07:14:20 +00:00 committed by Git OBS Bridge
parent bdaaa7536c
commit f455c85500
5 changed files with 14 additions and 7 deletions

3
README
View File

@ -2,7 +2,8 @@ obs-service-kiwi_metainfo_helper
================================
This service can be enabled to run during buildtime, when it will edit the
kiwi image description to replace placeholders with build-specific metainfo.
build recipe (.kiwi, Dockerfile, Chart.yaml) to replace placeholders with
build-specific metainfo.
| Placeholder | Value | Example |
|--------------------|--------------------------------------------|-----------------------------------------------------------------------------------------------|

View File

@ -15,7 +15,7 @@ if [ -e "${BUILD_DATA}" ]; then
RECIPEFILE="${RECIPEFILE##*:}"
if [ "${RECIPEFILE##*.}" != "kiwi" ] && [ "${RECIPEFILE}" != "Dockerfile" ] && [ "${RECIPEFILE}" != "Chart.yaml" ]; then
echo "Recipe is neither Dockerfile nor kiwi nor helm chart - exiting"
echo "Recipe is neither Dockerfile, kiwi recipe nor helm chart - exiting"
exit 0
fi
@ -28,7 +28,7 @@ else
# Guess the build recipe
files=(*.kiwi Dockerfile* Chart.yaml*)
if [ "${#files}" -eq 0 ]; then
echo "No kiwi or Dockerfile or helm chart found - exiting"
echo "No kiwi recipe, Dockerfile or helm chart found - exiting"
exit 0
fi
fi

View File

@ -1,4 +1,4 @@
<service name="kiwi_metainfo_helper">
<summary>Substitute various variables in .kiwi files</summary>
<description>Substitutes %DISTURL%, %RELEASE% and %BUILDTIME% in .kiwi files.</description>
<summary>Substitute various variables in build recipes</summary>
<description>Substitutes %DISTURL%, %RELEASE% and %BUILDTIME% in build recipes.</description>
</service>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Aug 27 07:12:48 UTC 2020 - Fabian Vogt <fvogt@suse.com>
- Fix grammar, update README and .service. Technically the name
should be changed as well, but that's just cosmetic.
-------------------------------------------------------------------
Tue Aug 25 11:10:50 UTC 2020 - Stefan Nica <snica@suse.com>

View File

@ -19,7 +19,7 @@
Name: obs-service-kiwi_metainfo_helper
Version: 0.0
Release: 0
Summary: Service for substituting various variables in kiwi recipes
Summary: Service for substituting various variables in build recipes
License: GPL-2.0-or-later
Group: Development/Tools/Building
URL: https://build.opensuse.org
@ -37,7 +37,7 @@ BuildArch: noarch
%description
This service can be used during buildtime to gain access to various variables
in kiwi recipes.
in build recipes.
%prep
%setup -q -D -T -n .