[Treepkg-commits] r345 - trunk/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Jul 7 15:32:29 CEST 2010
Author: bricks
Date: 2010-07-07 15:32:28 +0200 (Wed, 07 Jul 2010)
New Revision: 345
Modified:
trunk/treepkg/packager.py
Log:
check if logdir exist before detemining log files
Modified: trunk/treepkg/packager.py
===================================================================
--- trunk/treepkg/packager.py 2010-07-07 10:20:17 UTC (rev 344)
+++ trunk/treepkg/packager.py 2010-07-07 13:32:28 UTC (rev 345)
@@ -325,11 +325,12 @@
def get_log_files(self, logs):
files = []
- for f in os.listdir(self.log_dir):
- if f in logs:
- f = os.path.join(self.log_dir,f)
- if os.path.isfile(f):
- files.append((self.get_log_title(f),f))
+ if os.path.isdir(self.log_dir):
+ for f in os.listdir(self.log_dir):
+ if f in logs:
+ f = os.path.join(self.log_dir,f)
+ if os.path.isfile(f):
+ files.append((self.get_log_title(f),f))
return files
def list_log_files(self, logs):
More information about the Treepkg-commits
mailing list