Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package apparmor-rpm-macros for
openSUSE:Factory checked in at 2024-02-21 17:54:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/apparmor-rpm-macros (Old)
and /work/SRC/openSUSE:Factory/.apparmor-rpm-macros.new.1706 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "apparmor-rpm-macros"
Wed Feb 21 17:54:41 2024 rev:8 rq:1147946 version:1.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/apparmor-rpm-macros/apparmor-rpm-macros.changes
2023-06-14 16:28:53.846305227 +0200
+++
/work/SRC/openSUSE:Factory/.apparmor-rpm-macros.new.1706/apparmor-rpm-macros.changes
2024-02-21 17:54:46.491739269 +0100
@@ -1,0 +2,6 @@
+Tue Feb 20 12:15:28 UTC 2024 - Frederic Crozat <[email protected]>
+
+- Update macro to detect when installing in chroot
+ (transactional-update) and avoid calling apparmor_parser.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ apparmor-rpm-macros.spec ++++++
--- /var/tmp/diff_new_pack.sJeMaz/_old 2024-02-21 17:54:47.479775030 +0100
+++ /var/tmp/diff_new_pack.sJeMaz/_new 2024-02-21 17:54:47.479775030 +0100
@@ -1,7 +1,7 @@
#
# spec file for package apparmor-rpm-macros
#
-# Copyright (c) 2023 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
++++++ macros.apparmor ++++++
--- /var/tmp/diff_new_pack.sJeMaz/_old 2024-02-21 17:54:47.515776333 +0100
+++ /var/tmp/diff_new_pack.sJeMaz/_new 2024-02-21 17:54:47.519776478 +0100
@@ -1,8 +1,12 @@
%apparmor_reload()\
- if [ "$YAST_IS_RUNNING" != "instsys" -a -x /usr/bin/systemctl ]; then\
- if /usr/bin/systemctl is-active --quiet apparmor.service; then\
- /sbin/apparmor_parser -r -T -W %{?*} > /dev/null || :\
- fi\
+ if [ "$YAST_IS_RUNNING" != "instsys" -a -x /usr/bin/systemd-detect-virt
-a -x /usr/bin/systemctl ]; then\
+ systemd-detect-virt --chroot --quiet \
+ NOT_IN_CHROOT=$? \
+ if [ $NOT_IN_CHROOT -gt 0 ]; then \
+ if /usr/bin/systemctl is-active --quiet
apparmor.service; then\
+ /sbin/apparmor_parser -r -T -W %{?*} >
/dev/null || :\
+ fi\
+ fi \
fi\
%{nil}