diff --git a/iso/empanadas/empanadas/util/dnf_utils.py b/iso/empanadas/empanadas/util/dnf_utils.py index 7294ae2..d708b2d 100644 --- a/iso/empanadas/empanadas/util/dnf_utils.py +++ b/iso/empanadas/empanadas/util/dnf_utils.py @@ -1444,7 +1444,6 @@ class RepoSync: 'release': self.fullversion, 'timestamp': self.timestamp, } - ksdata.clear() try: Shared.treeinfo_modify_write(ksdata, imagemap, self.log) diff --git a/iso/empanadas/empanadas/util/shared.py b/iso/empanadas/empanadas/util/shared.py index 58525f8..77e6346 100644 --- a/iso/empanadas/empanadas/util/shared.py +++ b/iso/empanadas/empanadas/util/shared.py @@ -127,9 +127,9 @@ class Shared: timestamp = data['timestamp'] 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' - if '/kickstart/' in variant_path: + if '/kickstart' in variant_path: os_or_ks = 'kickstart' image = os.path.join(variant_path)