Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package xkeyboard-config for 
openSUSE:Factory checked in at 2025-07-30 11:42:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xkeyboard-config (Old)
 and      /work/SRC/openSUSE:Factory/.xkeyboard-config.new.13279 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xkeyboard-config"

Wed Jul 30 11:42:05 2025 rev:111 rq:1296333 version:2.45

Changes:
--------
--- /work/SRC/openSUSE:Factory/xkeyboard-config/xkeyboard-config.changes        
2025-07-22 12:54:28.129477541 +0200
+++ 
/work/SRC/openSUSE:Factory/.xkeyboard-config.new.13279/xkeyboard-config.changes 
    2025-07-30 11:42:45.576214896 +0200
@@ -1,0 +2,13 @@
+Tue Jul 29 13:25:48 UTC 2025 - Stefan Dirsch <sndir...@suse.com>
+
+- adjust the lua code for LUA 5.2+; builtin LUA currently seems to
+  be LUA 5.4 in RPM 4.20 on Tumbleweed (boo#1247050)
+
+-------------------------------------------------------------------
+Tue Jul 29 11:49:35 UTC 2025 - Stefan Dirsch <sndir...@suse.com>
+
+- improved lua script in %pretrans (boo#1246768, boo#1247050)
+  * better diagnostics for the failure in distrobox containers
+  * add a fallback to use cp and rm if rename fails
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ xkeyboard-config.spec ++++++
--- /var/tmp/diff_new_pack.lLSO2O/_old  2025-07-30 11:42:46.200240753 +0200
+++ /var/tmp/diff_new_pack.lLSO2O/_new  2025-07-30 11:42:46.204240919 +0200
@@ -88,7 +88,15 @@
     target = path .. ".rpmmoved." .. suffix
   end
 
-  os.rename(path, target)
+  local ok, err = os.rename(path, target)
+  if not ok then
+    io.stderr:write("Rename failed: " .. tostring(err) .. "\n")
+    io.stderr:write("Trying Copy and Remove instead\n")
+    local ok, kind, exit_code = os.execute("cp -a '" .. path .. "' '" .. 
target .. "' && rm -rf '" .. path .. "'")
+    if not ok or exit_code ~= 0 then
+      io.stderr:write("Copy and Remove failed (" .. tostring(kind) .. "): exit 
code " .. tostring(exit_code) .. "\n")
+    end
+  end
 end
 
 %post

Reply via email to