Accepting request 800066 from home:favogt:servicetest

- Strip service prefix from the recipe name to work with enabled
  services in OBS

OBS-URL: https://build.opensuse.org/request/show/800066
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-kiwi_label_helper?expand=0&rev=4
This commit is contained in:
Fabian Vogt 2020-05-04 14:19:53 +00:00 committed by Git OBS Bridge
parent a569821263
commit c786194b94
3 changed files with 12 additions and 3 deletions

View File

@ -9,6 +9,9 @@ fi
BUILD_DATA="${BUILD_DIST/.dist/.data}" BUILD_DATA="${BUILD_DIST/.dist/.data}"
. "${BUILD_DATA}" . "${BUILD_DATA}"
# The build script renames the recipe (to strip _service:foo:), but doesn't update .data
RECIPEFILE="${RECIPEFILE##*:}"
if [ "${RECIPEFILE##*.}" != "kiwi" ]; then if [ "${RECIPEFILE##*.}" != "kiwi" ]; then
echo "Recipe is not a kiwi file - exiting" echo "Recipe is not a kiwi file - exiting"
exit 0 exit 0

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon May 4 13:42:18 UTC 2020 - Fabian Vogt <fvogt@suse.com>
- Strip service prefix from the recipe name to work with enabled
services in OBS
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jan 10 08:22:53 UTC 2019 - Fabian Vogt <fvogt@suse.com> Thu Jan 10 08:22:53 UTC 2019 - Fabian Vogt <fvogt@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package obs-service-kiwi_label_helper # spec file for package obs-service-kiwi_label_helper
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -22,7 +22,7 @@ Release: 0
Summary: Service to duplicate labels with a custom prefix Summary: Service to duplicate labels with a custom prefix
License: GPL-2.0-or-later License: GPL-2.0-or-later
Group: Development/Tools/Building Group: Development/Tools/Building
Url: https://build.opensuse.org URL: https://build.opensuse.org
Source0: kiwi_label_helper.service Source0: kiwi_label_helper.service
Source1: kiwi_label_helper Source1: kiwi_label_helper
Source2: README Source2: README