From a7cf5db050f5dce1a6e7806b1a70fc505aa06eed Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Tue, 5 Jul 2022 08:43:57 -0700 Subject: [PATCH] fix up if statement --- iso/empanadas/empanadas/util/dnf_utils.py | 1 - iso/empanadas/empanadas/util/shared.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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)