aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido G√ľnther <agx@sigxcpu.org>2009-08-31 17:54:34 +0200
committerGuido G√ľnther <agx@sigxcpu.org>2009-08-31 17:54:34 +0200
commit5c90e5f2c85c028ad1e04b8621ed96d9b5d1c796 (patch)
tree596cfb1e1a5aaaecb625f94db950a643c6dba1ea
parent0fcfa307124390a89e3e6fb0217e7103e92e4dfc (diff)
make comparison case insensitive
to work with new pts page.
-rwxr-xr-xindex.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.cgi b/index.cgi
index 423189a..a6de819 100755
--- a/index.cgi
+++ b/index.cgi
@@ -63,9 +63,11 @@ def parse_pts_xhtml(pts):
result = searcher(tree)
for r in result:
- if r.text == "Changelog":
+ if not r.text:
+ continue
+ if r.text.lower() == "changelog":
cl_url = r.attrib['href']
- elif r.text == "browse":
+ elif r.text.lower() == "browse":
vcs_url = r.attrib['href']
parent = r.getparent()
vcs = parent.getchildren()[0].text.lower()