Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package libreoffice-share-linker for
openSUSE:Factory checked in at 2023-08-10 15:33:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libreoffice-share-linker (Old)
and /work/SRC/openSUSE:Factory/.libreoffice-share-linker.new.11712 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libreoffice-share-linker"
Thu Aug 10 15:33:01 2023 rev:7 rq:1103178 version:1
Changes:
--------
---
/work/SRC/openSUSE:Factory/libreoffice-share-linker/libreoffice-share-linker.changes
2023-03-25 18:53:59.858237777 +0100
+++
/work/SRC/openSUSE:Factory/.libreoffice-share-linker.new.11712/libreoffice-share-linker.changes
2023-08-10 15:33:09.275884669 +0200
@@ -1,0 +2,6 @@
+Wed Aug 9 05:53:27 UTC 2023 - Fridrich Strba <[email protected]>
+
+- Do not format using f-strings, since it is python 3.6+ feature
+ and SLE12-SP5 has python 3.4
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libreoffice-share-linker.py ++++++
--- /var/tmp/diff_new_pack.t4YrZc/_old 2023-08-10 15:33:09.851888262 +0200
+++ /var/tmp/diff_new_pack.t4YrZc/_new 2023-08-10 15:33:09.855888286 +0200
@@ -52,9 +52,9 @@
# we have to be sure it is not owned by anything else
# doing in 2nd run to ensure avoiding collisions
if link.is_dir() and not any(link.iterdir()):
- r = subprocess.run(f'rpm -qf {file}', shell=True,
- stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL)
- if not r.stdout:
+ r = subprocess.call("rpm -qf {}".format(file), shell=True,
+ stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL)
+ if r != 0:
link.rmdir()
else:
for file in files:
@@ -76,9 +76,9 @@
if leftover.is_dir() and not any(leftover.iterdir()):
leftover.rmdir()
- # remove dangling links as they might happen when migratin from older
+ # remove dangling links as they might happen when migrating from older
# libreoffice versions
# Run find directly as it's faster than os.walk run and a os.path.islink!
- subprocess.run(f'find {str(lodir)} -type l -xtype l -delete',
+ subprocess.call("find {} -type l -xtype l -delete".format(str(lodir)),
shell=True, stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL)