]> git.decadent.org.uk Git - dak.git/commitdiff
Make homepage URLs (nofollow) links.
authorChris Lamb <lamby@debian.org>
Tue, 29 Dec 2015 12:26:41 +0000 (13:26 +0100)
committerChris Lamb <lamby@debian.org>
Tue, 29 Dec 2015 12:26:41 +0000 (13:26 +0100)
Signed-off-by: Chris Lamb <lamby@debian.org>
dak/examine_package.py

index 63ee8af5ce303d01fbe19afcbff0386d881b9666..4b315dedcc77c8fb234f1c38e36263b0a48491e0 100755 (executable)
@@ -444,6 +444,11 @@ def output_deb_info(suite, filename, packagename, session = None):
             field_value = arch
         elif key == 'Maintainer':
             field_value = maintainer
+        elif key == 'Homepage':
+            field_value = escape_if_needed(control.find(key))
+            if use_html:
+                field_value = '<a href="%s" rel="nofollow">%s</a>' % \
+                    (field_value, field_value)
         elif key == 'Description':
             if use_html:
                 field_value = formatted_text(control.find(key), strip=True)