mirror of
https://git.launchpad.net/~ubuntu-qt-code/+git/calamares-settings-ubuntu
synced 2025-06-25 16:41:30 +00:00
Also replace DATE.
This commit is contained in:
parent
8236b6ad92
commit
ba78fcd55a
@ -18,6 +18,7 @@
|
|||||||
import json
|
import json
|
||||||
import subprocess
|
import subprocess
|
||||||
import libcalamares
|
import libcalamares
|
||||||
|
from time import strftime
|
||||||
from urllib import request
|
from urllib import request
|
||||||
from lsb_release import get_distro_information
|
from lsb_release import get_distro_information
|
||||||
|
|
||||||
@ -110,6 +111,7 @@ def changesources(prefix):
|
|||||||
sources = sources.replace("DISTRIBUTION", distro)
|
sources = sources.replace("DISTRIBUTION", distro)
|
||||||
sources = sources.replace("CODENAME", getcodename())
|
sources = sources.replace("CODENAME", getcodename())
|
||||||
sources = sources.replace("URL", url)
|
sources = sources.replace("URL", url)
|
||||||
|
sources = sources.replace("DATE", strftime("%Y-%m-%d"))
|
||||||
|
|
||||||
with open(root + "/etc/apt/sources.list", "r+") as sourcesfile:
|
with open(root + "/etc/apt/sources.list", "r+") as sourcesfile:
|
||||||
sourcesfile.seek(0)
|
sourcesfile.seek(0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user