[Piuparts-commits] rev 411 - trunk

Holger Levsen holger at alioth.debian.org
Wed May 13 07:53:20 UTC 2009


Author: holger
Date: 2009-05-13 07:53:20 +0000 (Wed, 13 May 2009)
New Revision: 411

Modified:
   trunk/piuparts-report.py
Log:
fix silly logic error

Modified: trunk/piuparts-report.py
===================================================================
--- trunk/piuparts-report.py	2009-05-13 07:25:19 UTC (rev 410)
+++ trunk/piuparts-report.py	2009-05-13 07:53:20 UTC (rev 411)
@@ -449,13 +449,13 @@
     f.close()
     return l
 
-def create_section_navigation(section_names,section="sid"):
+def create_section_navigation(section_names,current_section="sid"):
     tablerows = ""
     for section in section_names:
         tablerows += ("<tr class=\"normalrow\"><td class=\"contentcell\"><a href='/%s'>%s</a></td></tr>\n") % \
                           (html_protect(section), html_protect(section))
-    tablerows += "<tr><td class=\"contentcell\"><a href=\"/%s/source/\">by source package</a></td></tr>" % section
-    tablerows += "<tr><td class=\"contentcell\"><a href=\"/%s/maintainer/\">by maintainer / uploader</a></td></tr>" % section
+    tablerows += "<tr><td class=\"contentcell\"><a href=\"/%s/source/\">by source package</a></td></tr>" % current_section
+    tablerows += "<tr><td class=\"contentcell\"><a href=\"/%s/maintainer/\">by maintainer / uploader</a></td></tr>" % current_section
     return tablerows;
 
 def get_email_address(maintainer):




More information about the Piuparts-commits mailing list