[Piuparts-commits] [piuparts] 01/06: p-r: keep sections in a deque
Holger Levsen
holger at layer-acht.org
Thu Dec 14 20:17:35 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 ee51a76ec7bc4daa60d2b599dad0f06c4abcb69a
Author: Andreas Beckmann <anbe at debian.org>
Date: Mon Nov 27 20:56:35 2017 +0100
p-r: 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-report.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/piuparts-report.py b/piuparts-report.py
index 1604de9..c2e6d2b 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -39,6 +39,7 @@ import pickle
import random
import fcntl
from urllib2 import HTTPError, URLError
+from collections import deque
# if python-rpy2 ain't installed, we don't draw fancy graphs
try:
@@ -1791,7 +1792,9 @@ def main():
packagedb_cache = {}
create_file(os.path.join(output_directory, "sections.yaml"),
yaml.dump(section_names, default_flow_style=False))
- for section_name in process_section_names:
+ todo = deque([(s, 0) for s in process_section_names])
+ while len(todo):
+ (section_name, next_try) = todo.popleft()
try:
section_directory = os.path.join(master_directory, section_name)
if not os.path.exists(section_directory):
--
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