Also replace DATE.

ubuntu/focal
Simon Quigley 6 years ago
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…
Cancel
Save