From e9e37384ae4ac5e436539bca1fb380705b97e2f4 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 6 Jul 2022 23:41:28 -0700 Subject: [PATCH] undo config name --- iso/empanadas/empanadas/templates/reposync-src.tmpl | 1 + iso/empanadas/empanadas/util/dnf_utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/iso/empanadas/empanadas/templates/reposync-src.tmpl b/iso/empanadas/empanadas/templates/reposync-src.tmpl index 88836a3..7f901a9 100644 --- a/iso/empanadas/empanadas/templates/reposync-src.tmpl +++ b/iso/empanadas/empanadas/templates/reposync-src.tmpl @@ -2,6 +2,7 @@ set -o pipefail {{ import_gpg_cmd }} | tee -a {{ sync_log }} {{ dnf_plugin_cmd }} | tee -a {{ sync_log }} +sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/*.repo {{ sync_cmd }} | tee -a {{ sync_log }} # {{ check_cmd }} | tee -a {{ sync_log }} diff --git a/iso/empanadas/empanadas/util/dnf_utils.py b/iso/empanadas/empanadas/util/dnf_utils.py index 191fa16..20c2cbf 100644 --- a/iso/empanadas/empanadas/util/dnf_utils.py +++ b/iso/empanadas/empanadas/util/dnf_utils.py @@ -661,7 +661,7 @@ class RepoSync: """ fname = os.path.join( dest_path, - "{}-{}-config.repo".format(self.shortname, self.major_version) + "{}-config.repo".format(self.major_version) ) self.log.info('Generating the repo configuration: %s' % fname)