diff options
author | 2010-08-12 10:21:03 +0300 | |
---|---|---|
committer | 2010-08-12 10:21:03 +0300 | |
commit | e3c101da6543dd54b24bc6d5058cb352a8a42616 (patch) | |
tree | 164f7f331ded9ea32dcf3f99cd5462ddf74abbb5 | |
parent | Added grumpy/vdb to audit path (diff) | |
download | gsoc2010-grumpy-e3c101da6543dd54b24bc6d5058cb352a8a42616.tar.gz gsoc2010-grumpy-e3c101da6543dd54b24bc6d5058cb352a8a42616.tar.bz2 gsoc2010-grumpy-e3c101da6543dd54b24bc6d5058cb352a8a42616.zip |
Cleaned up and added standard header for grumpy.vdb.gnome
-rw-r--r-- | grumpy/vdb/gnome.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/grumpy/vdb/gnome.py b/grumpy/vdb/gnome.py index a4f86cc..dca7b3b 100644 --- a/grumpy/vdb/gnome.py +++ b/grumpy/vdb/gnome.py @@ -1,5 +1,14 @@ -from lxml.html import fromstring -import string, urllib2 +# -*- coding: utf-8 -*- +""" + grumpy.vdb.gnome + ~~~~~~~~~~~~~~~~ + + This module contains version check lookups for GNOME project packages. + + :copyright: (c) by 2010 Priit Laes. + :license: BSD, see LICENSE for details. +""" +import urllib2 class gnome_checker(object): # TODO: Shall we use some kind of yaml or json based format instead? @@ -44,6 +53,7 @@ class gnome_checker(object): items = {} # Read the latest release tarball versions using SHA256SUMS-files for x in self.ids: + # FIXME: GNOME version is hardcoded (needs extra options, somehow...) data = urllib2.urlopen('%s/%s/2.30/2.30.2/sources/SHA256SUMS-for-bz2' % \ (self.url, x)) for line in data.readlines(): @@ -55,4 +65,4 @@ class gnome_checker(object): return items if __name__ == '__main__': - print GNOME().fetch_and_parse_all() + print gnome_checker().fetch_and_parse_all() |