Newer
Older
# This file is part of pacman-mirrors.
#
# pacman-mirrors is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# pacman-mirrors is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with pacman-mirrors. If not, see <http://www.gnu.org/licenses/>.
#
# Authors: Esclapion <esclapion@manjaro.org>
# philm <philm@manjaro.org>
# Ramon Buldó <rbuldo@gmail.com>
# Hugo Posnic <huluti@manjaro.org>
# Frede Hundewadt <echo ZmhAbWFuamFyby5vcmcK | base64 -d>
from pacman_mirrors.builder import common, fasttrack, interactive
from pacman_mirrors.config import configuration as conf
from pacman_mirrors.functions import cliFn
from pacman_mirrors.functions import configFn
from pacman_mirrors.functions import defaultFn
from pacman_mirrors.functions import fileFn
from pacman_mirrors.functions import util
from pacman_mirrors.mirrors.mirror import Mirror
importlib.util.find_spec("gi.repository.Gtk")
GTK_AVAILABLE = False
GTK_AVAILABLE = True
"config_file": conf.CONFIG_FILE
self.no_mirrorlist = False
self.no_status = False
self.selected_countries = []
# Setup config: retunrs the config dictionary and true/false on custom
# i686 check - change branch to x32-$branch
# Check if mirrorlist is not to be touched - normal exit
# Handle missing network
# Load all mirrors
# Build mirror list
(self.config, self.custom) = configFn.setup_config()
cliFn.parse_command_line(self, GTK_AVAILABLE)
util.i686_check(self, write=True)
self.config["method"] = "random"
self.fasttrack = False
# Decide which type of mirrorlist to create
* Fasttrack
* Interactive
* Default
if __name__ == "__main__":