Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package openSUSE-release-tools for
openSUSE:Factory checked in at 2023-08-10 15:34:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openSUSE-release-tools (Old)
and /work/SRC/openSUSE:Factory/.openSUSE-release-tools.new.11712 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openSUSE-release-tools"
Thu Aug 10 15:34:50 2023 rev:494 rq:1103308 version:20230810.166affb
Changes:
--------
---
/work/SRC/openSUSE:Factory/openSUSE-release-tools/openSUSE-release-tools.changes
2023-08-09 17:26:48.777962897 +0200
+++
/work/SRC/openSUSE:Factory/.openSUSE-release-tools.new.11712/openSUSE-release-tools.changes
2023-08-10 15:35:05.196607633 +0200
@@ -1,0 +2,6 @@
+Thu Aug 10 10:32:35 UTC 2023 - [email protected]
+
+- Update to version 20230810.166affb:
+ * factory-package-news: walk through every directory in the iso image
+
+-------------------------------------------------------------------
Old:
----
openSUSE-release-tools-20230809.3232664.obscpio
New:
----
openSUSE-release-tools-20230810.166affb.obscpio
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ openSUSE-release-tools.spec ++++++
--- /var/tmp/diff_new_pack.PSWnIK/_old 2023-08-10 15:35:06.064613045 +0200
+++ /var/tmp/diff_new_pack.PSWnIK/_new 2023-08-10 15:35:06.064613045 +0200
@@ -20,7 +20,7 @@
%define source_dir openSUSE-release-tools
%define announcer_filename factory-package-news
Name: openSUSE-release-tools
-Version: 20230809.3232664
+Version: 20230810.166affb
Release: 0
Summary: Tools to aid in staging and release work for openSUSE/SUSE
License: GPL-2.0-or-later AND MIT
++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.PSWnIK/_old 2023-08-10 15:35:06.116613370 +0200
+++ /var/tmp/diff_new_pack.PSWnIK/_new 2023-08-10 15:35:06.120613395 +0200
@@ -1,7 +1,7 @@
<servicedata>
<service name="tar_scm">
<param
name="url">https://github.com/openSUSE/openSUSE-release-tools.git</param>
- <param
name="changesrevision">3232664160093cac263a80c8383fdea350e819b6</param>
+ <param
name="changesrevision">166affbfa0b9d0509c4ce0adf1a1dda1be6eeef5</param>
</service>
</servicedata>
++++++ openSUSE-release-tools-20230809.3232664.obscpio ->
openSUSE-release-tools-20230810.166affb.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20230809.3232664/factory-package-news/factory-package-news.py
new/openSUSE-release-tools-20230810.166affb/factory-package-news/factory-package-news.py
---
old/openSUSE-release-tools-20230809.3232664/factory-package-news/factory-package-news.py
2023-08-09 14:07:56.000000000 +0200
+++
new/openSUSE-release-tools-20230810.166affb/factory-package-news/factory-package-news.py
2023-08-10 12:31:56.000000000 +0200
@@ -101,6 +101,25 @@
data['changelogtext'][t] = utf8str(txt)
changelogs[srpm] = data
+ def _walk_through_iso_image(iso, path="/"):
+ file_stats = iso.readdir(path)
+ if file_stats is None:
+ raise Exception("Unable to find directory %s inside the iso
image" % path)
+
+ for stat in file_stats:
+ filename = stat[0]
+ LSN = stat[1]
+ is_directory = (stat[4] == 2) # 2 --> directory
+
+ if path == "/boot" or filename in ['.', '..']:
+ continue
+ elif is_directory:
+ yield from _walk_through_iso_image(iso,
path=os.path.join(path, filename))
+ elif filename.endswith('.rpm'):
+ yield filename, LSN
+
+ return None
+
for arg in args:
if arg.endswith('.iso'):
import pycdio
@@ -111,21 +130,10 @@
if not iso.is_open() or fd is None:
raise Exception("Could not open %s as an ISO-9660 image."
% arg)
- # On Tumbleweed, there is no '/suse' prefix
- for path in ['/suse/x86_64', '/suse/noarch', '/suse/aarch64',
- '/suse/s390x', '/x86_64', '/noarch', '/aarch64',
'/s390x']:
- file_stats = iso.readdir(path)
- if file_stats is None:
- continue
-
- for stat in file_stats:
- filename = stat[0]
- LSN = stat[1]
-
- if (filename.endswith('.rpm')):
- os.lseek(fd, LSN * pycdio.ISO_BLOCKSIZE,
io.SEEK_SET)
- h = self.ts.hdrFromFdno(fd)
- _getdata(h)
+ for filename, LSN in _walk_through_iso_image(iso):
+ os.lseek(fd, LSN * pycdio.ISO_BLOCKSIZE, io.SEEK_SET)
+ h = self.ts.hdrFromFdno(fd)
+ _getdata(h)
os.close(fd)
++++++ openSUSE-release-tools.obsinfo ++++++
--- /var/tmp/diff_new_pack.PSWnIK/_old 2023-08-10 15:35:06.972618709 +0200
+++ /var/tmp/diff_new_pack.PSWnIK/_new 2023-08-10 15:35:06.976618734 +0200
@@ -1,5 +1,5 @@
name: openSUSE-release-tools
-version: 20230809.3232664
-mtime: 1691582876
-commit: 3232664160093cac263a80c8383fdea350e819b6
+version: 20230810.166affb
+mtime: 1691663516
+commit: 166affbfa0b9d0509c4ce0adf1a1dda1be6eeef5