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)