]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
Store separate log for each build when sending more than one spec in single request.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 5 Oct 2009 20:46:01 +0000 (20:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    PLD_Builder/buildlogs.py -> 1.23

PLD_Builder/buildlogs.py

index be2913be7a4901e20565f2565cdb95b0fb8aeb29..4b704915474914e436c62fcf5ffa02153e9f02ca 100644 (file)
@@ -22,19 +22,20 @@ class Buildlogs_Queue:
         # if /dev/null, don't even bother to store it
         if config.buildlogs_url == "/dev/null":
             return
-        name = re.sub(r"\.spec\.log", "", os.path.basename(logfile)) + "," + id + ".bz2"
+        blogfile = os.path.basename(logfile)
+        name = re.sub(r"\.spec\.log", "", blogfile) + "," + id + '.' + blogfile + ".bz2"
         ret = os.system("bzip2 --best --force < %s > %s" \
-                    % (logfile, path.buildlogs_queue_dir + '/' + id))
+                    % (logfile, path.buildlogs_queue_dir + '/' + id '.' + blogfile))
         if ret:
             log.error("bzip2 compression of %s failed; does bzip2 binary exist?" % (logfile))
 
         if failed: s = "FAIL"
         else: s = "OK"
-        f = open(path.buildlogs_queue_dir + '/' + id + ".info", "w")
+        f = open(path.buildlogs_queue_dir + '/' + id + '.' + blogfile + ".info", "w")
         f.write("Status: %s\nEND\n" % s)
         f.close()
 
-        self.queue.append({'name': name, 'id': id, 'failed': failed})
+        self.queue.append({'name': name, 'id': id + '.' + blogfile, 'failed': failed})
 
     def flush(self):
         def desc(l):
This page took 0.267404 seconds and 4 git commands to generate.