# HG changeset patch
# User Bernhard Herzog <bh@intevation.de>
# Date 1212669295 0
# Node ID 4526105f81a7889ac0249eef2cda864aee639e0e
# Parent  25d4949ac2d846a29c32e0fd1d165f4f1e689618
Make sure the log dir exists before attempting to run pbuilder build

diff -r 25d4949ac2d8 -r 4526105f81a7 treepkg/packager.py
--- a/treepkg/packager.py	Thu Jun 05 12:13:38 2008 +0000
+++ b/treepkg/packager.py	Thu Jun 05 12:34:55 2008 +0000
@@ -206,6 +206,7 @@
     def package(self):
         self.status.creating_binary_package()
         util.ensure_directory(self.binary_dir)
+        util.ensure_directory(self.log_dir)
         logging.info("Building binary package; logging to %r", self.logfile)
         self.track.builder.build(self.dsc_file, self.binary_dir, self.logfile)
         self.status.binary_package_created()