17
0

4 Commits

Author SHA256 Message Date
5f0c33cf0c Accepting request 1154587 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1154587
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/update-bootloader-rpm-macros?expand=0&rev=8
2024-03-05 17:47:01 +00:00
1d9e0bd9df Accepting request 1154584 from home:michael-chang:branches:Base:System
- Remove coreutils from the %update_bootloader_requires (bsc#1218241)
- Make mkdir optional if it is not available, this is non-fatal because that
  generally indicates update-bootloader can be ignored due to missing coreutils

OBS-URL: https://build.opensuse.org/request/show/1154584
OBS-URL: https://build.opensuse.org/package/show/Base:System/update-bootloader-rpm-macros?expand=0&rev=14
2024-03-04 08:36:48 +00:00
536e38fa4e Accepting request 1132964 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1132964
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/update-bootloader-rpm-macros?expand=0&rev=7
2023-12-15 20:46:44 +00:00
ce7163b736 Accepting request 1132646 from home:gcomes.obs
- add Requires(post): coreutils to the macro %update_bootloader_requires
  * the post scriptlets use the commands mkdir and touch which would fail
    if coreutils is not installed

OBS-URL: https://build.opensuse.org/request/show/1132646
OBS-URL: https://build.opensuse.org/package/show/Base:System/update-bootloader-rpm-macros?expand=0&rev=12
2023-12-14 02:54:02 +00:00
3 changed files with 24 additions and 10 deletions

View File

@@ -1,13 +1,13 @@
%update_bootloader_requires %{nil}
%update_bootloader_requires %nil
%update_bootloader_refresh_post() \
mkdir -p %{_rundir}/update-bootloader/ \
touch %{_rundir}/update-bootloader/refresh \
! command -v mkdir >/dev/null || mkdir -p %{_rundir}/update-bootloader \
[ ! -d %{_rundir}/update-bootloader ] || > %{_rundir}/update-bootloader/refresh \
%nil
%update_bootloader_reinit_post() \
mkdir -p %{_rundir}/update-bootloader/ \
touch %{_rundir}/update-bootloader/reinit \
! command -v mkdir >/dev/null || mkdir -p %{_rundir}/update-bootloader \
[ ! -d %{_rundir}/update-bootloader ] || > %{_rundir}/update-bootloader/reinit \
%nil
%update_bootloader_check_type_refresh_post() \
@@ -17,8 +17,8 @@ loader_type=`sed -n \\\
2>/dev/null || :` \
for bl in %{?*}; do \
if test "x${bl}" = "x$loader_type" ; then \
mkdir -p %{_rundir}/update-bootloader/ \
touch %{_rundir}/update-bootloader/refresh \
! command -v mkdir >/dev/null || mkdir -p %{_rundir}/update-bootloader \
[ ! -d %{_rundir}/update-bootloader ] || > %{_rundir}/update-bootloader/refresh \
break \
fi \
done \
@@ -31,8 +31,8 @@ loader_type=`sed -n \\\
2>/dev/null || :` \
for bl in %{?*}; do \
if test "x${bl}" = "x$loader_type" ; then \
mkdir -p %{_rundir}/update-bootloader/ \
touch %{_rundir}/update-bootloader/reinit \
! command -v mkdir >/dev/null || mkdir -p %{_rundir}/update-bootloader \
[ ! -d %{_rundir}/update-bootloader ] || > %{_rundir}/update-bootloader/reinit \
break \
fi \
done \

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 4 07:53:38 UTC 2024 - Michael Chang <mchang@suse.com>
- Remove coreutils from the %update_bootloader_requires (bsc#1218241)
- Make mkdir optional if it is not available, this is non-fatal because that
generally indicates update-bootloader can be ignored due to missing coreutils
-------------------------------------------------------------------
Tue Dec 12 09:54:44 UTC 2023 - Giacomo Comes <gcomes.obs@gmail.com>
- add Requires(post): coreutils to the macro %update_bootloader_requires
* the post scriptlets use the commands mkdir and touch which would fail
if coreutils is not installed
-------------------------------------------------------------------
Mon Aug 15 19:07:05 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

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