commit:     c32caece8690c2a88bd12d4aa30cb27d8bdf25ef
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Tue May 31 17:51:17 2022 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Tue May 31 17:51:17 2022 +0000
URL:        https://gitweb.gentoo.org/proj/mirrorselect.git/commit/?id=c32caece

Remove remaining SYNC code

Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>

 mirrorselect/configs.py | 9 ++-------
 mirrorselect/main.py    | 4 ++--
 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
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)
 

Reply via email to