<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Why not use the <a href="https://download.kde.org/ls-lR"
moz-do-not-send="true">ls-lR</a> file?</p>
<p><br>
</p>
<p>mfg tobias<br>
</p>
<br>
<div class="moz-cite-prefix">On 10.08.2017 06:49, Pierre Bourgin
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:f56ee328-12e3-613c-18e7-e53012bb3485@free.fr">Greetings,
<br>
<br>
Is there a way to ask <a class="moz-txt-link-freetext" href="https://download.kde.org">https://download.kde.org</a> what is the last
version of a given filename / software ? Or retrieve all versions
of it with a solely HTTP request ?
<br>
<br>
Short example:
<br>
<br>
Attica (of kf5) download link 5.35 version is:
<br>
<a class="moz-txt-link-freetext" href="https://download.kde.org/stable/frameworks/5.35/attica-5.35.0.tar.xz">https://download.kde.org/stable/frameworks/5.35/attica-5.35.0.tar.xz</a>
<br>
<br>
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
<br>
(yes:
<a class="moz-txt-link-freetext" href="https://download.kde.org/stable/frameworks/5.36/attica-5.36.0.tar.xz">https://download.kde.org/stable/frameworks/5.36/attica-5.36.0.tar.xz</a>).
<br>
<br>
... 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:
<br>
<a class="moz-txt-link-freetext" href="https://download.kde.org/stable/taglib-extras/1.0.1/src/taglib-extras-1.0.1.tar.gz">https://download.kde.org/stable/taglib-extras/1.0.1/src/taglib-extras-1.0.1.tar.gz</a>
<br>
<br>
<br>
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.
<br>
<br>
Some other projects provides this kind of information with a
specific url, for instance:
<br>
- <a class="moz-txt-link-freetext" href="http://sourceforge.net/projects/$sfname/rss?limit=200">http://sourceforge.net/projects/$sfname/rss?limit=200</a>
<br>
- <a class="moz-txt-link-freetext" href="http://ftp.gnome.org/pub/GNOME/sources/$pkgname/cache.json">http://ftp.gnome.org/pub/GNOME/sources/$pkgname/cache.json</a>
<br>
<br>
<br>
Thanks for your advice or tips about it,
<br>
<br>
Kind regards,
<br>
<br>
Pierre Bourgin
<br>
<br>
[1] <a class="moz-txt-link-freetext" href="https://voidlinux.eu">https://voidlinux.eu</a>
<br>
[2]
<a class="moz-txt-link-freetext" href="https://github.com/voidlinux/void-packages/blob/master/common/xbps-src/shutils/update_check.sh">https://github.com/voidlinux/void-packages/blob/master/common/xbps-src/shutils/update_check.sh</a><br>
<br>
<br>
</blockquote>
<br>
</body>
</html>