[Piuparts-commits] [piuparts] 05/06: p-a: keep sections in a deque
Holger Levsen
holger at layer-acht.org
Thu Dec 14 20:17:36 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit c6ee35d2d685b9626438ba0b192e2ba6e23bf223
Author: Andreas Beckmann <anbe at debian.org>
Date: Thu Dec 14 21:04:20 2017 +0100
p-a: keep sections in a deque
Signed-off-by: Andreas Beckmann <anbe at debian.org>
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
piuparts-analyze.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/piuparts-analyze.py b/piuparts-analyze.py
index 3e83db9..51dd021 100644
--- a/piuparts-analyze.py
+++ b/piuparts-analyze.py
@@ -42,6 +42,7 @@ import fcntl
import debianbts
import apt_pkg
from signal import alarm, signal, SIGALRM
+from collections import deque
import piupartslib.conf
from piupartslib.conf import MissingSection
@@ -327,7 +328,9 @@ def main():
else:
sys.exit(0)
- for section_name in sections:
+ todo = deque([(s, 0) for s in sections])
+ while len(todo):
+ (section_name, next_try) = todo.popleft()
print(time.strftime("%a %b %2d %H:%M:%S %Z %Y", time.localtime()))
print("%s:" % section_name)
try:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list