diff options
author | Arun Raghavan <arunissatan@gmail.com> | 2008-07-03 14:01:56 +0530 |
---|---|---|
committer | Arun Raghavan <arunissatan@gmail.com> | 2008-07-03 14:01:56 +0530 |
commit | d3dccddd3090552d8ba94c7e2a1ba5aafd59a4dc (patch) | |
tree | 31bc2a38253a3700b348476365fda047c1583ab0 | |
parent | Add support for 'upstream-pkg':'cat/pkg' type mappings (diff) | |
download | gentoo-bumpchecker-d3dccddd3090552d8ba94c7e2a1ba5aafd59a4dc.tar.gz gentoo-bumpchecker-d3dccddd3090552d8ba94c7e2a1ba5aafd59a4dc.tar.bz2 gentoo-bumpchecker-d3dccddd3090552d8ba94c7e2a1ba5aafd59a4dc.zip |
Die with a more helpful error if the versions file is not available
-rw-r--r-- | modules/gnome_module.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/gnome_module.py b/modules/gnome_module.py index ac6d045..9df1246 100644 --- a/modules/gnome_module.py +++ b/modules/gnome_module.py @@ -35,7 +35,11 @@ class GNOME: self.release_versions_file_path = 'http://ftp.gnome.org/pub/GNOME/teams/releng/' def generate_data_from_versions_markup(self, url): - f = urllib2.urlopen(url) + try: + f = urllib2.urlopen(url) + except: + raise "Couldn't open", url + ret = [] for line in f.readlines(): components = line.split(':') @@ -46,6 +50,7 @@ class GNOME: # We have a workaround in compare_packages now, but we don't have a proper mapping to ruby-g* stuff yet, so ignore them for now if not(components[0] == 'bindings' and components[1][0] == 'G'): ret.append(package_module.Package(components[1] + "-" + components[2])) + f.close() return ret |