Merge pull request #2218 from ggardet/fix_factory_package_news_on_tw

factory-package-news: fixes for Tumbleweed
This commit is contained in:
Ludwig Nussel 2019-09-20 13:02:48 +02:00 committed by GitHub
commit 155606e3d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,9 @@ class ChangeLogger(cmdln.Cmdln):
if not iso.is_open() or fd is None:
raise Exception("Could not open %s as an ISO-9660 image." % arg)
for path in ['/suse/x86_64', '/suse/noarch', '/suse/aarch64', '/suse/s390x']:
# 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