]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
- typo
authorMichal Moskal <michal@moskal.me>
Tue, 10 Jun 2003 20:44:16 +0000 (20:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- don't store anything if url is /dev/null

Changed files:
    PLD_Builder/buildlogs.py -> 1.5
    PLD_Builder/ftp.py -> 1.2

PLD_Builder/buildlogs.py
PLD_Builder/ftp.py

index 7f5ff8e85fd0c671ad658e5873fc3471f8233021..07035048b11103daeeadb9f1eb908dba623dbfff 100644 (file)
@@ -10,6 +10,9 @@ class Buildlogs_Queue:
     self.some_failed = 0
 
   def add(self, logfile, failed):
+    # if /dev/null, don't even bother to store it
+    if config.buildlogs_url == "/dev/null":
+      return
     name = os.path.basename(logfile) + ".bz2"
     id = util.uuid()
     os.system("bzip2 --best --force < %s > %s" \
index 6ef5d19585b0926235e00d0adc61dc01ee9f9cf1..9803c561ae4aec2d5f532dcc6ecc258196b72fe2 100644 (file)
@@ -11,9 +11,12 @@ class FTP_Queue:
     self.some_failed = 0
 
   def add(self, file):
+    # if /dev/null, say bye bye
+    if config.ftp_url == "/dev/null":
+      return
     name = os.path.basename(file)
     id = util.uuid()
-    shutil.copy(file, config.ftp_queue_dir + id)
+    shutil.copy(file, path.ftp_queue_dir + id)
     self.queue.append({'name': name, 'id': id})
 
   def flush(self):
This page took 0.380449 seconds and 4 git commands to generate.