Bug#734748: uscan with KDE sites

Osamu Aoki osamu at debian.org
Sat Sep 26 04:28:03 UTC 2015


Hi,

I am going over bugs.  The current watch for the package reported for
this original bug report https://bugs.debian.org/734748  has been
updated to be:

version=3
http://download.kde.org/stable/applications/([\d.]+)/src/kde-workspace-([\d.]+).tar.xz

So this is not in FTP as originally reported but still uses single word
"URL"+"href matching pattern".

KDE does not seem to offer any useful HTTP web page listing the latest
packages.  So modern 2 words "HTTP" "href matching pattern" approach
does not seem to be an option.

Moreover, some KDE packages have multiple watch lines as 

version=3
http://download.kde.org/unstable/plasma/([\d.]+)/kwin-([\d.]+)\.tar\.xz
http://download.kde.org/stable/plasma/([\d.]+)/kwin-([\d.]+)\.tar\.xz

Yes, version=3 works for multiple lines but this is awkward watch to
use with uupdate etc.  I would rather see:

version=3
http://download.kde.org/(un)?stable/plasma/([\d.]+)/kwin-([\d.]+)\.tar\.xz

Since it happens to be unstable >> stable, this work nicely for normal
case but does not work for downloading the specific version.

Just locking /([\d.]+)/ to a version may work for some case but kind of
limited.  The better solution is to look for all path and pick up all
kwin-([\d.]+)\.tar\.xz URL and pick the highest package version.

It may take more time but more robust.

Problem is it seems to require a big rewrite.  

I could not see the patch on the web page so I am curious what was
proposed.

Regards,

Osamu



More information about the devscripts-devel mailing list