Last version of a given software on download.kde.org ?
Tobias C. Berner
tcberner at gmail.com
Thu Aug 10 08:03:07 BST 2017
Why not use the ls-lR <https://download.kde.org/ls-lR> file?
mfg tobias
On 10.08.2017 06:49, Pierre Bourgin wrote:
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/distributions/attachments/20170810/0883a285/attachment.htm>
More information about the Distributions
mailing list