aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-08-26 14:40:35 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-08-26 14:40:35 -0400
commit2609770462719fc46458ce721c445aee669f460c (patch)
tree08cf057d2e447388702880f52f161dc08a1b0569
parent8341ffc2ac6cc1e1539f325eaa0a95033fcb9a69 (diff)
downloadgrokmirror-2609770462719fc46458ce721c445aee669f460c.tar.gz
Save manifest before grabbing new one
Make sure we save what we have in the done queue before we grab new manifest, otherwise we go into the "no local manifest" mode. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-xgrokmirror/pull.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/grokmirror/pull.py b/grokmirror/pull.py
index c88c3ac..52614c6 100755
--- a/grokmirror/pull.py
+++ b/grokmirror/pull.py
@@ -1126,6 +1126,8 @@ def pull_mirror(config, nomtime=False, forcepurge=False, runonce=False):
pass
if not runonce and not len(mws) and q_todo.empty() and time.time() - lastrun >= refresh:
+ if done:
+ update_manifest(config, done)
mw = mp.Process(target=manifest_worker, args=(config, q_mani))
mw.daemon = True
mw.start()