1
0

Accepting request 1112210 from Kernel:tools

- cpio on SLE12 does not support -D option, emulate it.

OBS-URL: https://build.opensuse.org/request/show/1112210
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-kiwi_metainfo_helper?expand=0&rev=34
This commit is contained in:
Fabian Vogt 2023-09-19 09:34:44 +00:00 committed by Git OBS Bridge
parent 7c12e140a7
commit 696ee5137a
3 changed files with 7 additions and 2 deletions

View File

@ -71,7 +71,7 @@ if grep -q "%OS_" ${files[@]}; then
# Extract the content
tempdir=$(mktemp -d)
trap "rm -r ${tempdir}" EXIT
rpm2cpio "${relpkgs[0]}" | cpio -idD "${tempdir}"
rpm2cpio "${relpkgs[0]}" | (cd "${tempdir}" && cpio -id)
# And source it
[ -f "${tempdir}/usr/lib/os-release" ] && . "${tempdir}/usr/lib/os-release"

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 15 13:08:03 UTC 2023 - Michal Suchanek <msuchanek@suse.com>
- cpio on SLE12 does not support -D option, emulate it.
-------------------------------------------------------------------
Tue Dec 6 17:10:20 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package obs-service-kiwi_metainfo_helper
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed