From f4dc6b2277a1c2b49939c871a46bab45b5928f38 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Thu, 5 Jun 2014 11:42:14 +0100 Subject: [PATCH] Replace %(SERIES) macro in config files with value passed to --series --- britney.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/britney.py b/britney.py index 542265c..7013522 100755 --- a/britney.py +++ b/britney.py @@ -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_"):