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