From 6e15ce66ea3e02e24d0d605e9290bb455e36bf86 Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 6 Sep 2019 15:16:24 +0800 Subject: [PATCH] fix bugs --- buildbot.py | 4 ++-- repod.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/buildbot.py b/buildbot.py index a864514..4dedc2a 100755 --- a/buildbot.py +++ b/buildbot.py @@ -263,7 +263,7 @@ class jobsManager: sizes = [f.stat().st_size / 1000 / 1000 for f in f_to_upload] max_tries = 10 for tries in range(max_tries): - timeouts = rrun('push_start', args=(f_to_upload, sizes)) + timeouts = rrun('push_start', args=([f.name for f in f_to_upload], sizes)) if type(timeouts) is list: break else: @@ -299,7 +299,7 @@ class jobsManager: max_tries = 5 for tries in range(max_tries): try: - res = rrun('push_done', args=(f_to_upload,), kwargs={'overwrite': overwrite,}) + res = rrun('push_done', args=([f.name for f in f_to_upload],), kwargs={'overwrite': overwrite,}) except Exception: time_to_sleep = (tries + 1) * 60 logger.info(f'Error updating {pkg_update_list}, wait {time_to_sleep} secs') diff --git a/repod.py b/repod.py index 05108c0..f00e091 100755 --- a/repod.py +++ b/repod.py @@ -175,7 +175,7 @@ if __name__ == '__main__': try: with Listener(REPOD_BIND_ADDRESS, authkey=REPOD_BIND_PASSWD) as listener: with listener.accept() as conn: - logger.info('connection accepted from %s', listener.last_accepted) + logger.debug('connection accepted from %s', listener.last_accepted) myrecv = conn.recv() if type(myrecv) is list and len(myrecv) == 3: (funcname, args, kwargs) = myrecv