properly loop live images
This commit is contained in:
parent
007f571224
commit
5f2f3cae5b
Binary file not shown.
@ -1499,6 +1499,7 @@ class RepoSync:
|
|||||||
for arch in self.arches:
|
for arch in self.arches:
|
||||||
iso_arch_root = os.path.join(sync_iso_root, arch)
|
iso_arch_root = os.path.join(sync_iso_root, arch)
|
||||||
iso_arch_checksum = os.path.join(iso_arch_root, 'CHECKSUM')
|
iso_arch_checksum = os.path.join(iso_arch_root, 'CHECKSUM')
|
||||||
|
if os.path.exists(iso_arch_root):
|
||||||
with open(iso_arch_checksum, 'w+', encoding='utf-8') as fp:
|
with open(iso_arch_checksum, 'w+', encoding='utf-8') as fp:
|
||||||
for check in glob.iglob(iso_arch_root + '/*.CHECKSUM'):
|
for check in glob.iglob(iso_arch_root + '/*.CHECKSUM'):
|
||||||
with open(check, 'r', encoding='utf-8') as sum:
|
with open(check, 'r', encoding='utf-8') as sum:
|
||||||
@ -1507,9 +1508,9 @@ class RepoSync:
|
|||||||
sum.close()
|
sum.close()
|
||||||
fp.close()
|
fp.close()
|
||||||
|
|
||||||
if arch == 'x86_64' and os.path.exists(sync_live_root):
|
|
||||||
live_arch_root = os.path.join(sync_live_root, arch)
|
live_arch_root = os.path.join(sync_live_root, arch)
|
||||||
live_arch_checksum = os.path.join(live_arch_root, 'CHECKSUM')
|
live_arch_checksum = os.path.join(live_arch_root, 'CHECKSUM')
|
||||||
|
if os.path.exists(live_arch_root):
|
||||||
with open(live_arch_checksum, 'w+', encoding='utf-8') as lp:
|
with open(live_arch_checksum, 'w+', encoding='utf-8') as lp:
|
||||||
for lcheck in glob.iglob(iso_arch_root + '/*.CHECKSUM'):
|
for lcheck in glob.iglob(iso_arch_root + '/*.CHECKSUM'):
|
||||||
with open(lcheck, 'r', encoding='utf-8') as sum:
|
with open(lcheck, 'r', encoding='utf-8') as sum:
|
||||||
|
Loading…
Reference in New Issue
Block a user