diff options
author | 2008-06-02 11:37:13 +0530 | |
---|---|---|
committer | 2008-06-02 12:03:33 +0530 | |
commit | ec206e72fb6be1814fdc90dd2fa4ee0ca40dfdb6 (patch) | |
tree | e0e9ed946701b296b39c1c78d11e532ea29ab765 | |
parent | Rename main.py to gentoo-bumpchecker.py (diff) | |
download | gentoo-bumpchecker-ec206e72fb6be1814fdc90dd2fa4ee0ca40dfdb6.tar.gz gentoo-bumpchecker-ec206e72fb6be1814fdc90dd2fa4ee0ca40dfdb6.tar.bz2 gentoo-bumpchecker-ec206e72fb6be1814fdc90dd2fa4ee0ca40dfdb6.zip |
Link to the 'versions' file instead of upstream FTP in html output
-rw-r--r-- | modules/gnome_module.py | 3 | ||||
-rw-r--r-- | modules/gnome_output.py | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/modules/gnome_module.py b/modules/gnome_module.py index 91d7c6b..ef091ed 100644 --- a/modules/gnome_module.py +++ b/modules/gnome_module.py @@ -31,6 +31,7 @@ class GNOME: "pub/GNOME/desktop/" + self.major_release + "/" + self.full_release + "/", "pub/GNOME/bindings/" + self.major_release + "/" + self.full_release + "/"] self.latest_versions_file_path = 'http://www.gnome.org/~vuntz/tmp/versions/' + self.latest_versions_url = self.latest_versions_file_path + 'versions-' + self.gnome_release self.release_versions_file_path = 'http://ftp.gnome.org/pub/GNOME/teams/releng/' def generate_data_from_versions_markup(self, url): @@ -49,7 +50,7 @@ class GNOME: return ret def generate_data_individual(self): - return self.generate_data_from_versions_markup(self.latest_versions_file_path + 'versions-' + self.gnome_release) + return self.generate_data_from_versions_markup(self.latest_versions_url) def generate_data_release(self): return self.generate_data_from_versions_markup(self.release_versions_file_path + self.full_release + '/versions') diff --git a/modules/gnome_output.py b/modules/gnome_output.py index e876fb3..8890099 100644 --- a/modules/gnome_output.py +++ b/modules/gnome_output.py @@ -61,10 +61,8 @@ class Output: lines.append("<h2>Gnome " + clioptions_module.Options().get_arguments().release_number + " Progress</h2>") lines.append("contact " + os.environ["USER"] + "@gentoo.org if anything is not correct<br>") lines.append("Generated date: " + current_time + "<br>") - lines.append("Directories checked ( recursively ): <br>") - for dir in gnome_module.GNOME().release_directories: - directory = "ftp://ftp.gnome.org/" + dir - lines.append("<a href=" + "\"" + directory + "\"" + ">" + directory + "</a>" + "<br>") + lines.append("<a href=\"" + gnome_module.GNOME().latest_versions_url \ + + "\">Upstream versions list</a> <br>") # stats lines.append("<br>") |