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