Replace %(SERIES) macro in config files with value passed to --series

ubuntu/dry-run
Colin Watson 11 years ago committed by Iain Lane
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…
Cancel
Save