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