summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-12 19:24:23 +0200
committerDan McGee <dan@archlinux.org>2010-09-12 19:32:13 +0200
commit5ca2cea388862a507484e0375edf36972cb389ef (patch)
tree207b3fc50ce9903fdec9813cc4198f6505135ae8 /news
parent51fca0c98db75629ff7dd26330ff40211554e6e6 (diff)
downloadarchweb-5ca2cea388862a507484e0375edf36972cb389ef.tar.gz
archweb-5ca2cea388862a507484e0375edf36972cb389ef.tar.xz
reporead: revamp database parsing code
This needed a little sprucing up as it has grown quite organically over the life of this script. Make things a bit more pythonic through the use of iterators rather than collection indexing, and try to generalize the special cases of things a bit. Also catch encoding problems early and fail gracefully rather than blow up the entire package parser. A failed decode of a file should cause us to just skip it rather than stop the entire parser. Worst case, this leaves that package out of the web interface. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'news')
0 files changed, 0 insertions, 0 deletions