From 1e3ca193a332669b62591ef082f4ca4d240d0ae6 Mon Sep 17 00:00:00 2001 From: Ludovic <54670129+lbr38@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:45:30 +0100 Subject: [PATCH] patch --- src/controllers/Module/Reposerver/Agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/Module/Reposerver/Agent.py b/src/controllers/Module/Reposerver/Agent.py index 6510f6b..851a215 100644 --- a/src/controllers/Module/Reposerver/Agent.py +++ b/src/controllers/Module/Reposerver/Agent.py @@ -86,9 +86,9 @@ def run_general_checks(self): # #----------------------------------------------------------------------------------------------- def on_inotify_change(self, ev): - # If an update is running by linupdate, then do nothing - # if Path('/tmp/linupdate.update-running').is_file(): - # return + # If an update is running by linupdate, then do nothing for now + if Path('/tmp/linupdate.update-running').is_file(): + return # If latest event was less than 120 seconds ago, then do not send again the history # if self.last_inotify_event_time and time.time() - self.last_inotify_event_time < 120: