summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-08-21 00:12:38 -0500
committerDan McGee <dan@archlinux.org>2012-08-21 00:13:31 -0500
commiteb44404a17ae9feacdf2948a5cda958510ac2fed (patch)
tree7ef65b8c120a59849ba13a679beea80699a4a163
parent90001d9ac781d07feba6120bfe64112481b9a5fb (diff)
Fix scm_link in a way that doesn't make cgit barf
This does what commit cd51842ce86 set out to do in a way that doesn't break cgit's not-so-hit query string parsing. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--packages/templatetags/package_extras.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py
index 1aedf677..d87a74a5 100644
--- a/packages/templatetags/package_extras.py
+++ b/packages/templatetags/package_extras.py
@@ -103,7 +103,7 @@ def scm_link(package, operation):
linkbase = (
"https://projects.archlinux.org/svntogit/%s.git/%s/trunk?"
"h=packages/%s")
- return linkbase % tuple(urlquote(part) for part in parts)
+ return linkbase % tuple(urlquote(part.encode('utf-8')) for part in parts)
@register.simple_tag