mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-11 06:27:03 +00:00
Replace %(SERIES) macro in config files with value passed to --series
This commit is contained in:
parent
4ece0b9dba
commit
c8c8d56bee
@ -450,6 +450,8 @@ class Britney(object):
|
||||
k, v = line.split('=', 1)
|
||||
k = k.strip()
|
||||
v = v.strip()
|
||||
if self.options.series is not None:
|
||||
v = v.replace("%(SERIES)", self.options.series)
|
||||
if k.startswith("MINDAYS_"):
|
||||
MINDAYS[k.split("_")[1].lower()] = int(v)
|
||||
elif k.startswith("HINTS_"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user