[projects/pld-builder.new] builder: drop broken dead queue helpers and unused state
arekm
arekm at pld-linux.org
Mon Oct 26 17:16:05 CET 2026
commit 202b2e5f45879afc70b3667abbe8b5dbc92f4202
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Oct 24 11:06:35 2026 +0200
builder: drop broken dead queue helpers and unused state
PLD_Builder/build.py | 4 ----
PLD_Builder/buildlogs.py | 1 -
PLD_Builder/config.py | 6 ------
PLD_Builder/ftp.py | 8 --------
PLD_Builder/notifyq.py | 15 ---------------
5 files changed, 34 deletions(-)
---
diff --git a/PLD_Builder/build.py b/PLD_Builder/build.py
index ff95cae..055b02e 100644
--- a/PLD_Builder/build.py
+++ b/PLD_Builder/build.py
@@ -58,7 +58,6 @@ def build_all(r, build_fnc):
log.notice("started processing %s" % r.id)
r.chroot_files = []
- r.some_ok = 0
for batch in r.batches:
can_build = 1
failed_dep = ""
@@ -77,7 +76,6 @@ def build_all(r, build_fnc):
log.notice("running %s FAILED" % batch.command)
notify.add_batch(batch, "FAIL")
else:
- r.some_ok = 1
log.notice("running %s OK" % batch.command)
notify.add_batch(batch, "OK")
batch.build_time = stopwatch.stop()
@@ -87,7 +85,6 @@ def build_all(r, build_fnc):
log.notice("not running command, not for me.")
batch.build_failed = 0
batch.log_line("queued command %s for other builders" % batch.command)
- r.some_ok = 1
buildlogs.add(batch.logfile, failed = batch.build_failed, id=r.id)
elif can_build:
log.notice("building %s" % batch.spec)
@@ -101,7 +98,6 @@ def build_all(r, build_fnc):
log.notice("building %s FAILED (%s)" % (batch.spec, batch.build_failed))
notify.add_batch(batch, batch.build_failed)
else:
- r.some_ok = 1
log.notice("building %s OK" % (batch.spec))
notify.add_batch(batch, "OK")
batch.build_time = stopwatch.stop()
diff --git a/PLD_Builder/buildlogs.py b/PLD_Builder/buildlogs.py
index e6ec3af..311ae11 100644
--- a/PLD_Builder/buildlogs.py
+++ b/PLD_Builder/buildlogs.py
@@ -11,7 +11,6 @@ from config import config
class Buildlogs_Queue:
def __init__(self):
self.queue = []
- self.some_failed = 0
self.requester_email = None
def init(self, g):
diff --git a/PLD_Builder/config.py b/PLD_Builder/config.py
index 39047ea..ebc7d79 100644
--- a/PLD_Builder/config.py
+++ b/PLD_Builder/config.py
@@ -30,10 +30,6 @@ syslog_facilities = {
}
class Builder_Conf:
- def __init__(self):
- self.done = 0
- pass
-
def read(self, builder):
p = ConfigParser.ConfigParser()
def get(o, d = None, sec=None):
@@ -115,8 +111,6 @@ class Builder_Conf:
else:
log.panic("no such syslog facility: %s" % f)
- self.done = 1
-
config = Builder_Conf()
def init_conf(builder=None):
diff --git a/PLD_Builder/ftp.py b/PLD_Builder/ftp.py
index 0d13be6..41f7238 100644
--- a/PLD_Builder/ftp.py
+++ b/PLD_Builder/ftp.py
@@ -11,7 +11,6 @@ import util
class FTP_Queue:
def __init__(self):
self.queue = None
- self.some_failed = 0
self.status = ""
def init(self, g=None, rpmqa=False):
@@ -52,10 +51,6 @@ END
f.write(desc(l))
f.close()
- def kill(self):
- for l in self.queue:
- os.unlink(path.ftp_queue_dir + '/' + l)
-
queue = FTP_Queue()
def add(f, type="rpm"):
@@ -64,9 +59,6 @@ def add(f, type="rpm"):
def flush():
queue.flush()
-def kill():
- queue.kill()
-
def init(r=None, rpmqa=False):
queue.init(r, rpmqa)
diff --git a/PLD_Builder/notifyq.py b/PLD_Builder/notifyq.py
index 602da0b..0092596 100644
--- a/PLD_Builder/notifyq.py
+++ b/PLD_Builder/notifyq.py
@@ -1,7 +1,6 @@
# vi: encoding=utf-8 ts=8 sts=4 sw=4 et
import path
-import os
import time
from config import config
@@ -10,7 +9,6 @@ import util
class Notify_Queue:
def __init__(self):
self.queue = None
- self.some_failed = 0
def init(self, g=None):
self.queue = []
@@ -39,10 +37,6 @@ END
f.write(desc(l))
f.close()
- def kill(self):
- for l in self.queue:
- os.unlink(path.notify_queue_dir + '/' + l)
-
queue = Notify_Queue()
def add(notify):
@@ -51,14 +45,5 @@ def add(notify):
def flush():
queue.flush()
-def kill():
- queue.kill()
-
def init(r):
queue.init(r)
-
-def status():
- return queue.status
-
-def clear_status():
- queue.status = ""
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/ce9feb3c796ed049b6dd260a50d94d80feb1656d
More information about the pld-cvs-commit
mailing list