[Pkg-debile-commits] [debile-master] 105/126: Stringify ints for paths joining

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 d4c6a4302faca99c381ea3b16bbe1df5c2cd0ac2
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Sat Jul 27 00:13:50 2013 +0200

    Stringify ints for paths joining
---
 lucy/server.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lucy/server.py b/lucy/server.py
index 51cd7d7..5079531 100644
--- a/lucy/server.py
+++ b/lucy/server.py
@@ -89,11 +89,11 @@ class LucyInterface(object):
 
     def get_log_write_location(self, job_id):
         # FIXME: unsafe code, we should verify if the job id exists
-        path = os.path.join(config.get('paths', 'job'), job_id, 'log')
+        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'), job_id, 'firehose.xml')
+        path = os.path.join(config.get('paths', 'job'), str(job_id), '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