aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2022-05-31 10:51:17 -0700
committerBrian Dolbec <dolsen@gentoo.org>2022-05-31 10:51:17 -0700
commitc32caece8690c2a88bd12d4aa30cb27d8bdf25ef (patch)
tree23b182aa9f93d332d9abc6c077d3923cbd86e2c0
parentselectors.py: Change general exception output to print_warn (diff)
downloadmirrorselect-c32caece8690c2a88bd12d4aa30cb27d8bdf25ef.tar.gz
mirrorselect-c32caece8690c2a88bd12d4aa30cb27d8bdf25ef.tar.bz2
mirrorselect-c32caece8690c2a88bd12d4aa30cb27d8bdf25ef.zip
Remove remaining SYNC code
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
-rw-r--r--mirrorselect/configs.py9
-rw-r--r--[-rwxr-xr-x]mirrorselect/main.py4
2 files changed, 4 insertions, 9 deletions
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
index 9cad25b..8a3094e 100755..100644
--- 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)