- don't store anything if url is /dev/null
Changed files:
PLD_Builder/buildlogs.py -> 1.5
PLD_Builder/ftp.py -> 1.2
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" \
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):