|
|
|
@ -23,7 +23,7 @@ from urllib.error import HTTPError
|
|
|
|
|
from urllib.error import URLError
|
|
|
|
|
import socket
|
|
|
|
|
import logging
|
|
|
|
|
from lsb_release import get_distro_information
|
|
|
|
|
import distro
|
|
|
|
|
|
|
|
|
|
global sources
|
|
|
|
|
sources = """# Automatically generated by Calamares on DATE.
|
|
|
|
@ -137,7 +137,7 @@ def get_subdomain_by_country(countrycode):
|
|
|
|
|
|
|
|
|
|
def getcodename():
|
|
|
|
|
"""Return the codename of the distribution, similar to lsb_release -cs"""
|
|
|
|
|
return get_distro_information()["CODENAME"]
|
|
|
|
|
return distro.codename()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def changesources(subdomain):
|
|
|
|
|