From ace2cdc232fa70accd69434e28e41d63b164892b Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 2 May 2021 19:32:27 +0200 Subject: [PATCH] - cleanup --- TLD_Builder/request_handler.py | 3 --- TLD_Builder/srpm_builder.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/TLD_Builder/request_handler.py b/TLD_Builder/request_handler.py index 70a1866..74c7f1c 100644 --- a/TLD_Builder/request_handler.py +++ b/TLD_Builder/request_handler.py @@ -19,7 +19,6 @@ from lock import lock from bqueue import B_Queue from config import config, init_conf from mailer import Message -#import messagebus def check_double_id(id): id_nl = id + "\n" @@ -196,10 +195,8 @@ def handle_request(req, filename = None): status.push("request from %s" % user.login) r = request.parse_request(body) if r.kind == 'group': -# messagebus.notify(topic="request.group", user=user.login, **r.dump_json()) handle_group(r, user) elif r.kind == 'notification': -# messagebus.notify(topic="request.notify", user=user.login, **r.dump_json()) handle_notification(r, user) else: msg = "%s: don't know how to handle requests of this kind '%s'" \ diff --git a/TLD_Builder/srpm_builder.py b/TLD_Builder/srpm_builder.py index d761466..ea85d3b 100644 --- a/TLD_Builder/srpm_builder.py +++ b/TLD_Builder/srpm_builder.py @@ -23,7 +23,6 @@ import notify import status import build import report -#import messagebus from lock import lock from bqueue import B_Queue @@ -96,7 +95,6 @@ def build_srpm(r, b): return "FAIL" status.push("building %s" % b.spec) -# messagebus.notify(topic="build_srpm.start", spec=b.spec, flags=r.flags, batch=b, request=r) b.src_rpm = "" builder_opts = "-nu -nm --nodeps --http --define \'_tld_builder 1\'" @@ -137,7 +135,6 @@ def build_srpm(r, b): if res: res = "FAIL" -# messagebus.notify(topic="build_srpm.finish", spec=b.spec) return res def handle_request(r): -- 2.46.0