mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] Sourceforge changed the filebrowser


From: David García Garzón
Subject: [Mingw-cross-env-list] Sourceforge changed the filebrowser
Date: Wed, 1 Dec 2010 18:10:56 +0100
User-agent: KMail/1.13.5 (Linux/2.6.31-11-rt; KDE/4.5.1; i686; ; )

Sourceforge changed the filebrowser page[1] and the update scripts that use 
SOURCEFORGE_FILES macro got broken. 
[1] http://sourceforge.net/blog/new-browse-files-pages-and-file-manager/

The new page generates the old table in dynamically at client side using Jason 
data appended at the end of the page. For example, for libmad:

        net.sf.files = {
            "0.15.1b": {"sha1": "", "name": "0.15.1b", "mirrors": 0, "url": 
"/projects/mad/files/libmad/0.15.1b/", "downloads": 46056, "exclude_reports": 
false, "download_url": 
"http://sourceforge.net/projects/mad/files/libmad/0.15.1b/download";, 
"default": "", "downloadable": false, "path": "/libmad", "download_label": "", 
"md5": "", "type": "d", "full_path": "libmad/0.15.1b", "legacy_release_notes": 
null},
            "0.15.0b": {"sha1": "", "name": "0.15.0b", "mirrors": 0, "url": 
"/projects/mad/files/libmad/0.15.0b/", "downloads": 1101, "exclude_reports": 
false, "download_url": 
"http://sourceforge.net/projects/mad/files/libmad/0.15.0b/download";, 
"default": "", "downloadable": false, "path": "/libmad", "download_label": "", 
"md5": "", "type": "d", "full_path": "libmad/0.15.0b", "legacy_release_notes": 
null}
            };
    });

The update line i managed to use to get version list:

wget -q -O- 'http://sourceforge.net/projects/mad/files/libmad/' |  \
        grep legacy_release_notes | \
        grep download_url |  \
        sed -e 's,.*"\([0-9][^"]*\)":.*,\1,' 

Not robust at all, but it works.

David.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]