[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. eda668423fa87898c59d1075118693714aa5a053

Holger Levsen holger at layer-acht.org
Fri Dec 23 10:28:34 UTC 2011


The following commit has been merged in the master branch:
commit 6d9429ca95ad8fdfb6a6fb7d7dc335bf05d6b400
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Dec 12 00:16:57 2011 +0100

    fix paths

diff --git a/piuparts-report.py b/piuparts-report.py
index fbcf16e..a3735e7 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -735,9 +735,9 @@ class Section:
         states = ["fail", "unknown", "pass"]
         for maintainer in maintainers.keys():
             sources = maintainers[maintainer]
-            maintainer_subdir = os.path.join(maintainer_dir, maintainer_subdir(maintainer))
-            if not os.path.exists(maintainer_subdir):
-              os.mkdir(maintainer_subdir)
+            maintainer_subdir_path = os.path.join(maintainer_dir, maintainer_subdir(maintainer))
+            if not os.path.exists(maintainer_subdir_path):
+              os.mkdir(maintainer_subdir_path)
             rows = ""
             package_rows = ""
             packages = {}
@@ -765,7 +765,7 @@ class Section:
             distrolinks += "</td></tr>"
 
             htmlpage = string.Template(HTML_HEADER + MAINTAINER_BODY_TEMPLATE + HTML_FOOTER)
-            filename = os.path.join(maintainer_subdir, maintainer + ".html")
+            filename = os.path.join(maintainer_subdir_path, maintainer + ".html")
             f = file(filename, "w")
             f.write(htmlpage.safe_substitute( {
                "page_title": html_protect("Status of "+maintainer+" packages in "+self._config.section),

-- 
piuparts git repository



More information about the Piuparts-commits mailing list