# Path: pacman_mirrors/functions/httpFn.py
# def download_mirrors(config):
# def get_geoip_country():
# def get_mirror_response(url, maxwait=2, count=1, quiet=False, ssl_verify=True):
# def inet_conn_check(maxwait=2):
# def ping_host(host, count=1):
# def update_mirror_pool(config, quiet=False):
# 
# Path: pacman_mirrors/functions/validFn.py
# def custom_config_is_valid():
# def country_list_is_valid(onlycountry, countrylist):


from pacman_mirrors.functions import httpFn
from pacman_mirrors.functions import validFn
# 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: Frede Hundewadt <echo ZmhAbWFuamFyby5vcmcK | base64 -d>

"""Pacman-Mirrors Country Functions"""



def build_country_list(country_selection, country_pool, geoip=False):
    """
    Do a check on the users country selection
    :param country_selection:
    :param country_pool:
    :param geoip:
    :return: list of valid countries
    :rtype: list
    """
    """
    Don't change this code
    This works so please don't touch
    """
    result = []
    if country_selection:
        if country_selection == ["all"]:
            result = country_pool
        else:

# Path: pacman_mirrors/functions/httpFn.py
# def download_mirrors(config):
# def get_geoip_country():
# def get_mirror_response(url, maxwait=2, count=1, quiet=False, ssl_verify=True):
# def inet_conn_check(maxwait=2):
# def ping_host(host, count=1):
# def update_mirror_pool(config, quiet=False):
# 
# Path: pacman_mirrors/functions/validFn.py
# def custom_config_is_valid():
# def country_list_is_valid(onlycountry, countrylist):


# Path: pacman_mirrors/functions/countryFn.py
from pacman_mirrors.functions import httpFn
from pacman_mirrors.functions import validFn

# 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: Frede Hundewadt <echo ZmhAbWFuamFyby5vcmcK | base64 -d>

"""Pacman-Mirrors Country Functions"""



def build_country_list(country_selection, country_pool, geoip=False):
    """
    Do a check on the users country selection
    :param country_selection:
    :param country_pool:
    :param geoip:
    :return: list of valid countries
    :rtype: list
    """
    """
    Don't change this code
    This works so please don't touch
    """
    result = []
    if country_selection:
        if country_selection == ["all"]:
            result = country_pool
        else:

            if validFn.country_list_is_valid(country_selection,