fix up if statement

This commit is contained in:
Louis Abel 2022-07-05 08:43:57 -07:00
parent cf13fb0a02
commit a7cf5db050
Signed by untrusted user: label
GPG Key ID: B37E62D143879B36
2 changed files with 2 additions and 3 deletions

View File

@ -1444,7 +1444,6 @@ class RepoSync:
'release': self.fullversion, 'release': self.fullversion,
'timestamp': self.timestamp, 'timestamp': self.timestamp,
} }
ksdata.clear()
try: try:
Shared.treeinfo_modify_write(ksdata, imagemap, self.log) Shared.treeinfo_modify_write(ksdata, imagemap, self.log)

View File

@ -127,9 +127,9 @@ class Shared:
timestamp = data['timestamp'] timestamp = data['timestamp']
os_or_ks = '' os_or_ks = ''
if '/os/' in variant_path or not imagemap['disc']: if '/os' in variant_path or not imagemap['disc']:
os_or_ks = 'os' os_or_ks = 'os'
if '/kickstart/' in variant_path: if '/kickstart' in variant_path:
os_or_ks = 'kickstart' os_or_ks = 'kickstart'
image = os.path.join(variant_path) image = os.path.join(variant_path)