summaryrefslogtreecommitdiffstats
path: root/cnucnu/package_list.py
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-04-02 15:31:55 +0300
committerTill Maas <opensource@till.name>2011-04-14 17:22:11 +0200
commitee92262897fbc68cb6e72be2bef528e6987f9042 (patch)
tree30835a0f557d29ea6e76bf338d5c025d1d7caec4 /cnucnu/package_list.py
parent2033ec781097b6f268eff87d6d5767b63092d40b (diff)
downloadcnucnu-ee92262897fbc68cb6e72be2bef528e6987f9042.tar.gz
cnucnu-ee92262897fbc68cb6e72be2bef528e6987f9042.tar.xz
cnucnu-ee92262897fbc68cb6e72be2bef528e6987f9042.zip
Change SF-DEFAULT to use SourceForge RSS API.
This is better than the previous (HTML) URL because it includes releases from subdirectories. The previous URL relied on the "Looking for the latest version? ..." link which may not always point to the actual latest version of anything and can handle only one release and thus doesn't handle releases in subdirs at all.
Diffstat (limited to 'cnucnu/package_list.py')
-rwxr-xr-xcnucnu/package_list.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cnucnu/package_list.py b/cnucnu/package_list.py
index f6d362f..0a4fe4d 100755
--- a/cnucnu/package_list.py
+++ b/cnucnu/package_list.py
@@ -184,7 +184,7 @@ class Package(object):
name = name_override.group(2)
name = urllib.quote(name, safe='')
if url == "SF-DEFAULT":
- url = "http://sourceforge.net/projects/%s/files/" % name
+ url = "http://sourceforge.net/api/file/index/project-name/%s/mtime/desc/limit/20/rss" % name
elif url == "FM-DEFAULT":
url = "http://freshmeat.net/projects/%s" % name
elif url == "GNU-DEFAULT":