[Pkg-debile-commits] [debile-master] 106/126: Makedirs for the report path
Sylvestre Ledru
sylvestre at alioth.debian.org
Mon Aug 19 14:56:24 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch scan-build-html
in repository debile-master.
commit 5e3f4d6a7eb0da493c2e823d7c95f3e3b22c3457
Author: Léo Cavaillé <leo at cavaille.net>
Date: Sat Jul 27 00:19:42 2013 +0200
Makedirs for the report path
---
lucy/server.py | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/lucy/server.py b/lucy/server.py
index 5079531..75eed5e 100644
--- a/lucy/server.py
+++ b/lucy/server.py
@@ -88,12 +88,20 @@ class LucyInterface(object):
)
def get_log_write_location(self, job_id):
+ path = os.path.join(config.get('paths', 'job'), str(job_id))
+ # FIXME : awful
+ if not os.path.exists(path):
+ os.makedirs(path)
+ path = os.path.join(path, 'log')
# FIXME: unsafe code, we should verify if the job id exists
- path = os.path.join(config.get('paths', 'job'), str(job_id), 'log')
return path
def get_firehose_write_location(self, job_id):
- path = os.path.join(config.get('paths', 'job'), str(job_id), 'firehose.xml')
+ path = os.path.join(config.get('paths', 'job'), str(job_id))
+ # FIXME : awful
+ if not os.path.exists(path):
+ os.makedirs(path)
+ path = os.path.join(path, 'firehose.xml')
return path
def get_deb_info(self, binary_id):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git
More information about the Pkg-debile-commits
mailing list