Last version of a given software on download.kde.org ?

Pierre Bourgin pierre.bourgin at free.fr
Thu Aug 10 05:49:35 BST 2017


Greetings,

Is there a way to ask https://download.kde.org what is the last version 
of a given filename / software ? Or retrieve all versions of it with a 
solely HTTP request ?

Short example:

Attica (of kf5) download link 5.35 version is:
https://download.kde.org/stable/frameworks/5.35/attica-5.35.0.tar.xz

To guess if it's its last version, have to request it's parent folder 
(/stable/frameworks/), parse the HTML reply, check other entries are 
relevant, find that a 5.36 folder exists (> 5.35), parse its content and 
see that a newer version for this distfile exists
(yes: https://download.kde.org/stable/frameworks/5.36/attica-5.36.0.tar.xz).

... not really convinient and error-prone, since other distfiles does 
not use the same URL scheme : for instance, taglib-extras has an 
intermediate "src/" in its path:
https://download.kde.org/stable/taglib-extras/1.0.1/src/taglib-extras-1.0.1.tar.gz


Background info: VoidLinux [1] is a rolling Linux distribution, so be 
aware with the help of a shell script [2] that a new version of a given 
software is available is really usefull.

Some other projects provides this kind of information with a specific 
url, for instance:
- http://sourceforge.net/projects/$sfname/rss?limit=200
- http://ftp.gnome.org/pub/GNOME/sources/$pkgname/cache.json


Thanks for your advice or tips about it,

Kind regards,

Pierre Bourgin

[1] https://voidlinux.eu
[2] 
https://github.com/voidlinux/void-packages/blob/master/common/xbps-src/shutils/update_check.sh





More information about the Distributions mailing list