Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package selinux-policy for openSUSE:Factory 
checked in at 2023-10-05 20:03:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/selinux-policy (Old)
 and      /work/SRC/openSUSE:Factory/.selinux-policy.new.28202 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "selinux-policy"

Thu Oct  5 20:03:04 2023 rev:49 rq:1115652 version:20230728

Changes:
--------
--- /work/SRC/openSUSE:Factory/selinux-policy/selinux-policy.changes    
2023-07-29 20:09:51.773772329 +0200
+++ /work/SRC/openSUSE:Factory/.selinux-policy.new.28202/selinux-policy.changes 
2023-10-05 20:03:32.591558548 +0200
@@ -1,0 +2,13 @@
+Wed Oct  4 14:40:03 UTC 2023 - Johannes Segitz <[email protected]>
+
+- Use /var/adm/update-scripts in macros.selinux-policy. The rpm state
+  directory doesn't exist on SUSE systems (bsc#1213593)
+
+-------------------------------------------------------------------
+Tue Sep 19 07:57:02 UTC 2023 - Johannes Segitz <[email protected]>
+
+- Modified update.sh to require first parameter "full" to also
+  update container-selinux. For maintenance updates you usually
+  don't want it to be updated
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------

++++++ macros.selinux-policy ++++++
--- /var/tmp/diff_new_pack.6PCeyu/_old  2023-10-05 20:03:35.839675892 +0200
+++ /var/tmp/diff_new_pack.6PCeyu/_new  2023-10-05 20:03:35.843676037 +0200
@@ -28,7 +28,7 @@
 %_selinux_store_policy_path %{_selinux_store_path}/${_policytype}
 
 %_file_context_file 
%{_sysconfdir}/selinux/${SELINUXTYPE}/contexts/files/file_contexts
-%_file_context_file_pre /run/rpm-state/file_contexts.pre
+%_file_context_file_pre /var/adm/update-scripts/file_contexts.pre
 
 %_file_custom_defined_booleans %{_selinux_store_policy_path}/rpmbooleans.custom
 %_file_custom_defined_booleans_tmp 
%{_selinux_store_policy_path}/rpmbooleans.custom.tmp
@@ -92,7 +92,7 @@
     _policytype="targeted" \
   fi \
   if [ "${SELINUXTYPE}" = "${_policytype}" ]; then \
-    mkdir -p /run/rpm-state \
+    mkdir -p $(dirname %{_file_context_file_pre}) \
     [ -f %{_file_context_file_pre} ] || cp -f %{_file_context_file} 
%{_file_context_file_pre} \
   fi \
 fi \

++++++ update.sh ++++++
--- /var/tmp/diff_new_pack.6PCeyu/_old  2023-10-05 20:03:36.047683407 +0200
+++ /var/tmp/diff_new_pack.6PCeyu/_new  2023-10-05 20:03:36.047683407 +0200
@@ -2,18 +2,20 @@
 
 date=$(date '+%Y%m%d')
 base_name_pattern='selinux-policy-*.tar.xz'
-
 echo Update to $date
 
 old_tar_file=$(ls -1 $base_name_pattern)
 
 osc service manualrun
 
-rm -rf container-selinux
-git clone --depth 1 https://github.com/containers/container-selinux.git
-rm -f container.*
-mv container-selinux/container.* .
-rm -rf container-selinux
+if [ "$1" = "full" ]; then
+  echo doing full update including container-selinux
+  rm -rf container-selinux
+  git clone --depth 1 https://github.com/containers/container-selinux.git
+  rm -f container.*
+  mv container-selinux/container.* .
+  rm -rf container-selinux
+fi
 
 # delete old files. Might need a better sanity check
 tar_cnt=$(ls -1 $base_name_pattern  | wc -l)
@@ -25,4 +27,3 @@
 
 osc status
 
-

Reply via email to