From d14309ef78ff0f6728959057f5806f61633f4f34 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Fri, 15 Jul 2022 16:55:41 -0700 Subject: [PATCH] turn on remote time --- iso/empanadas/empanadas/util/dnf_utils.backup | 8 ++++---- iso/empanadas/empanadas/util/dnf_utils.py | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/iso/empanadas/empanadas/util/dnf_utils.backup b/iso/empanadas/empanadas/util/dnf_utils.backup index 9bba3eb..38c9825 100644 --- a/iso/empanadas/empanadas/util/dnf_utils.backup +++ b/iso/empanadas/empanadas/util/dnf_utils.backup @@ -422,7 +422,7 @@ class RepoSync: ) sync_cmd = ("/usr/bin/dnf reposync -c {}.{} --download-metadata " - "--repoid={} -p {} --forcearch {} --norepopath " + "--repoid={} -p {} --forcearch {} --norepopath --remote-time " "--gpgcheck --assumeyes 2>&1").format( self.dnf_config, a, @@ -433,7 +433,7 @@ class RepoSync: debug_sync_cmd = ("/usr/bin/dnf reposync -c {}.{} " "--download-metadata --repoid={}-debug -p {} --forcearch {} " - "--gpgcheck --norepopath --assumeyes 2>&1").format( + "--gpgcheck --norepopath --remote-time --assumeyes 2>&1").format( self.dnf_config, a, r, @@ -495,7 +495,7 @@ class RepoSync: ks_sync_cmd = ("/usr/bin/dnf reposync -c {}.{} --download-metadata " "--repoid={} -p {} --forcearch {} --norepopath " - "--gpgcheck --assumeyes 2>&1").format( + "--gpgcheck --assumeyes --remote-time 2>&1").format( self.dnf_config, a, r, @@ -546,7 +546,7 @@ class RepoSync: source_sync_cmd = ("/usr/bin/dnf reposync -c {} " "--download-metadata --repoid={}-source -p {} " - "--gpgcheck --norepopath --assumeyes 2>&1").format( + "--gpgcheck --norepopath --remote-time --assumeyes 2>&1").format( self.dnf_config, r, source_sync_path diff --git a/iso/empanadas/empanadas/util/dnf_utils.py b/iso/empanadas/empanadas/util/dnf_utils.py index c319e1f..38c9825 100644 --- a/iso/empanadas/empanadas/util/dnf_utils.py +++ b/iso/empanadas/empanadas/util/dnf_utils.py @@ -422,7 +422,7 @@ class RepoSync: ) sync_cmd = ("/usr/bin/dnf reposync -c {}.{} --download-metadata " - "--repoid={} -p {} --forcearch {} --norepopath " + "--repoid={} -p {} --forcearch {} --norepopath --remote-time " "--gpgcheck --assumeyes 2>&1").format( self.dnf_config, a, @@ -433,7 +433,7 @@ class RepoSync: debug_sync_cmd = ("/usr/bin/dnf reposync -c {}.{} " "--download-metadata --repoid={}-debug -p {} --forcearch {} " - "--gpgcheck --norepopath --assumeyes 2>&1").format( + "--gpgcheck --norepopath --remote-time --assumeyes 2>&1").format( self.dnf_config, a, r, @@ -495,7 +495,7 @@ class RepoSync: ks_sync_cmd = ("/usr/bin/dnf reposync -c {}.{} --download-metadata " "--repoid={} -p {} --forcearch {} --norepopath " - "--gpgcheck --assumeyes 2>&1").format( + "--gpgcheck --assumeyes --remote-time 2>&1").format( self.dnf_config, a, r, @@ -546,7 +546,7 @@ class RepoSync: source_sync_cmd = ("/usr/bin/dnf reposync -c {} " "--download-metadata --repoid={}-source -p {} " - "--gpgcheck --norepopath --assumeyes 2>&1").format( + "--gpgcheck --norepopath --remote-time --assumeyes 2>&1").format( self.dnf_config, r, source_sync_path @@ -593,6 +593,7 @@ class RepoSync: join_all_pods = ' '.join(entry_name_list) time.sleep(3) self.log.info(Color.INFO + 'Syncing ' + r + ' ...') + self.log.info(Color.INFO + 'Arches: ' + ' '.join(arch_sync)) pod_watcher = '{} wait {}'.format( cmd, join_all_pods