From: Mario Domenech Goulart Date: Mon, 8 Feb 2010 18:56:17 +0000 (-0200) Subject: init_db.py: fix for `do_priority' X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=f1b378ae2fa431750b641bacad2cac26a0411e53;p=dak.git init_db.py: fix for `do_priority' Look for the right priority from the config file Priority subtree.. Signed-off-by: Mario Domenech Goulart --- diff --git a/dak/init_db.py b/dak/init_db.py index daccddef..169f3005 100755 --- a/dak/init_db.py +++ b/dak/init_db.py @@ -174,7 +174,7 @@ class InitDB(object): for priority in self.Cnf.SubTree("Priority").List(): p = Priority() p.priority = priority - p.level = self.Cnf.get("Priority::%s", "0") + p.level = self.Cnf.get("Priority::" + priority, "0") s.add(p) s.commit()