From: Ciaran Gultnieks Date: Tue, 4 Sep 2012 17:49:54 +0000 (+0100) Subject: Several silly errors in previous commit X-Git-Tag: 0.1~764 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c7ebe5cbae36d72e30b10c97915ef5b400944243;p=fdroidserver.git Several silly errors in previous commit --- diff --git a/fdroidserver/update.py b/fdroidserver/update.py index e7f0b5da..6e908020 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -212,8 +212,8 @@ def main(): # Generate a list of categories... categories = [] for app in apps: - cats = app['Category'].Split(';') - for cat in cats + cats = app['Category'].split(';') + for cat in cats: if cat not in categories: categories.append(cat) @@ -511,7 +511,8 @@ def main(): # We put the first (primary) category in LAST, which will have # the desired effect of making clients that only understand one # category see that one. - cats = app['Category'].split(';').reverse() + cats = app['Category'].split(';') + cats.reverse() for cat in cats: addElement('category', cat, doc, apel) addElement('web', app['Web Site'], doc, apel)