Package: ftp.debian.org Severity: normal Tags: patch Hi,
when I copy the example config from config/examples/dak.conf to /etc/dak/dak.conf and try to run dak with "python dak/dak.py" I get an key error: Traceback (most recent call last): File "dak/dak.py", line 239, in <module> main() File "dak/dak.py", line 177, in main logger = Logger('dak top-level', print_starting=False) File "/home/tom/devel/debian/dak/dak/daklib/daklog.py", line 47, in __init__ self._open_log(debug) File "/home/tom/devel/debian/dak/dak/daklib/daklog.py", line 55, in _open_log logdir = Config()["Dir::Log"] File "/home/tom/devel/debian/dak/dak/daklib/config.py", line 109, in __getitem__ return self.Cnf[name] KeyError: 'Dir::Log' Adding the log dir to the example config solves this problem. Cheers, Tom
>From 94a1613b0cb9a337e699b36d817aaaf0b692a874 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold <thomasbecht...@jpberlin.de> Date: Sun, 12 Jan 2014 20:41:11 +0100 Subject: [PATCH] Add log dir to example config Log dir is mandatory. --- config/examples/dak.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/examples/dak.conf b/config/examples/dak.conf index e9d10c6..d747e1f 100644 --- a/config/examples/dak.conf +++ b/config/examples/dak.conf @@ -16,3 +16,8 @@ Config } } + +Dir { + Log "/tmp/dak/log"; + Lock "/tmp/dak/lock/"; +}; -- 1.8.5.2