From c32caece8690c2a88bd12d4aa30cb27d8bdf25ef Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Tue, 31 May 2022 10:51:17 -0700 Subject: Remove remaining SYNC code Signed-off-by: Brian Dolbec --- mirrorselect/configs.py | 9 ++------- mirrorselect/main.py | 4 ++-- 2 files changed, 4 insertions(+), 9 deletions(-) mode change 100755 => 100644 mirrorselect/main.py diff --git a/mirrorselect/configs.py b/mirrorselect/configs.py index 2dd6cba..93b2108 100644 --- a/mirrorselect/configs.py +++ b/mirrorselect/configs.py @@ -138,12 +138,10 @@ def write_repos_conf(output, config_path, var, value): " variable: %s\nChanges NOT SAVED" %var) -def get_filesystem_mirrors(output, config_path, sync=False): +def get_filesystem_mirrors(output, config_path): """Read the current mirrors and retain mounted filesystems mirrors @param config_path: string - @param sync: boolean, used to switch between SYNC and GENTOO_MIRRORS - make.conf variable target @rtype list """ @@ -158,10 +156,7 @@ def get_filesystem_mirrors(output, config_path, sync=False): fsmirrors = [] - if sync: - var = 'SYNC' - else: - var = 'GENTOO_MIRRORS' + var = 'GENTOO_MIRRORS' output.write('get_filesystem_mirrors(): config_path = %s\n' % config_path, 2) try: diff --git a/mirrorselect/main.py b/mirrorselect/main.py old mode 100755 new mode 100644 index 9cad25b..8a3094e --- a/mirrorselect/main.py +++ b/mirrorselect/main.py @@ -95,7 +95,7 @@ class MirrorSelect(object): @param out: boolean, used to redirect output to stdout @param config_path; string @param sync: boolean, used to switch between sync-uri repos.conf target, - SYNC and GENTOO_MIRRORS make.conf variable target + and GENTOO_MIRRORS make.conf variable target """ if sync: var = "sync-uri" @@ -371,7 +371,7 @@ class MirrorSelect(object): self.output.print_err("main(); Exiting due to missing repos.conf/gentoo.conf file\n") fsmirrors = get_filesystem_mirrors(self.output, - config_path, options.rsync) + config_path) hosts = self.get_available_hosts(options) -- cgit v1.2.3-65-gdbad