From 2c3409de5158554ba4910674c8187c262f777b64 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Thu, 30 Jun 2022 03:06:29 -0700 Subject: [PATCH] treeinfo is not writing to paths --- iso/empanadas/empanadas/util/dnf_utils.py | 12 ++++++------ iso/empanadas/empanadas/util/shared.py | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/iso/empanadas/empanadas/util/dnf_utils.py b/iso/empanadas/empanadas/util/dnf_utils.py index 8af3bac..58480db 100644 --- a/iso/empanadas/empanadas/util/dnf_utils.py +++ b/iso/empanadas/empanadas/util/dnf_utils.py @@ -1005,7 +1005,7 @@ class RepoSync: else: self.log.warn( '[' + Color.BOLD + Color.YELLOW + 'WARN' + Color.END + '] ' + - repo_name + ' ' + a + 'os .treeinfo already exists' + repo_name + ' ' + a + ' os .treeinfo already exists' ) if not os.path.exists(os_disc_path): @@ -1018,7 +1018,7 @@ class RepoSync: else: self.log.warn( '[' + Color.BOLD + Color.YELLOW + 'WARN' + Color.END + '] ' + - repo_name + ' ' + a + 'os .discinfo already exists' + repo_name + ' ' + a + ' os .discinfo already exists' ) if not os.path.exists(os_media_path): @@ -1030,7 +1030,7 @@ class RepoSync: else: self.log.warn( '[' + Color.BOLD + Color.YELLOW + 'WARN' + Color.END + '] ' + - repo_name + ' ' + a + 'os media.repo already exists' + repo_name + ' ' + a + ' os media.repo already exists' ) if not self.ignore_debug: @@ -1068,7 +1068,7 @@ class RepoSync: else: self.log.warn( '[' + Color.BOLD + Color.YELLOW + 'WARN' + Color.END + '] ' + - r + ' ' + a + 'debug .treeinfo already exists' + r + ' ' + a + ' debug .treeinfo already exists' ) if not os.path.exists(debug_disc_path): @@ -1081,7 +1081,7 @@ class RepoSync: else: self.log.warn( '[' + Color.BOLD + Color.YELLOW + 'WARN' + Color.END + '] ' + - r + ' ' + a + 'debug .discinfo already exists' + r + ' ' + a + ' debug .discinfo already exists' ) if not os.path.exists(debug_media_path): @@ -1093,7 +1093,7 @@ class RepoSync: else: self.log.warn( '[' + Color.BOLD + Color.YELLOW + 'WARN' + Color.END + '] ' + - repo_name + ' ' + a + 'debug media.repo already exists' + repo_name + ' ' + a + ' debug media.repo already exists' ) diff --git a/iso/empanadas/empanadas/util/shared.py b/iso/empanadas/empanadas/util/shared.py index e3b08c5..2661356 100644 --- a/iso/empanadas/empanadas/util/shared.py +++ b/iso/empanadas/empanadas/util/shared.py @@ -72,8 +72,8 @@ class Shared: variant.uid = repo variant.name = repo variant.type = "variant" - variant.repository = "." - variant.packages = "Packages" + variant.paths.repository = "." + variant.paths.packages = "Packages" ti.variants.add(variant) ti.dump(file_path)