summaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-11-27 15:04:44 -0600
committerDan McGee <dan@archlinux.org>2010-11-27 15:04:44 -0600
commit14c8833cf0e1e2e6bd2b59f9da9944757aa47c70 (patch)
tree3a08e1ede2c604d8ea5e9ba5691919c1ed5a092a /feeds.py
parent9acae339ffefa1193b25e28efc3dc4c3533b7188 (diff)
Fix feeds for case-sensitive databases
This worked in MySQL because of it's case-insensitive matching, but does not work in other databases unless we coerce the value. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/feeds.py b/feeds.py
index e7462bc8..cbcccd77 100644
--- a/feeds.py
+++ b/feeds.py
@@ -71,7 +71,7 @@ class PackageFeed(Feed):
obj['arch'] = a
if repo != '':
# feed for a single arch AND repo
- r = Repo.objects.get(name=repo)
+ r = Repo.objects.get(name__iexact=repo)
qs = qs.filter(repo=r)
obj['repo'] = r
obj['qs'] = qs[:50]