[Blends-commit] [SCM] website branch, master, updated. 62b4b5d8b2d72459d39faf2a7c535e06ba4b8f6f

Ole Streicher olebole at debian.org
Mon Jan 11 13:31:11 UTC 2016


The following commit has been merged in the master branch:
commit 24046d2dcb41f85f7e61a68c9f6aee830a4fafff
Author: Ole Streicher <olebole at debian.org>
Date:   Mon Jan 11 10:07:41 2016 +0100

    Remove unused local variable found_status

diff --git a/webtools_py3/tasks_udd.py b/webtools_py3/tasks_udd.py
index 8362aad..da188ba 100755
--- a/webtools_py3/tasks_udd.py
+++ b/webtools_py3/tasks_udd.py
@@ -213,22 +213,20 @@ for lang in languages:
 
     for task in data['taskskeys']:
         data['task']               = task
-        # Keep the Dependency lists per task to be able to loop over all tasks in plain package list
+        # Keep the Dependency lists per task to be able to loop over
+        # all tasks in plain package list
         data['dependencies'][task] = []
-        found_status = {}
         for status in use_dependencystatus:
             if len(tasks.tasks[task].dependencies[status]) > 0:
-                if status == 'unknown':
-                    # Just print an error message if there are packages with unknown status
-                    if lang == 'en':
-                        # ... but only once and not per language
-                        for dep in tasks.tasks[task].dependencies[status]:
-                            print("Warning: Dependency with unknown status:", dep.pkg, file=stderr)
-                else:
+                if status != 'unknown':
                     data['dependencies'][task].append(status)
-                    if status in data['dependencies'][task]:
-                        if status not in found_status:
-                            found_status[status] = 1
+                elif lang == 'en':
+                    # Just print an error message if there are packages with
+                    # unknown status but only once and not per language
+                    for dep in tasks.tasks[task].dependencies[status]:
+                        print("Warning: Dependency with unknown status:",
+                              dep.pkg, file=stderr)
+
         # Keep the Project lists per task to be able to loop over all tasks in plain package list
         data['projects'][task] = tasks.tasks[task].dependencies
         data['othertasks']     = ("Links to other tasks")

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list