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

Re: debian/watch file and berlios

On Mon, Nov 20, 2006 at 11:21:45AM +0100, Andreas Bresser wrote:
> Hello,
> The upstream-author of my package "spe" uploaded a new release on
> berlios.de (on sourceforge is still the old version), so I changed the
> debian/watch-file from sf.net to berlios:
> version=3
> opts=downloadurlmangle=s/prdownload/download/ \
>     http://developer.berlios.de/project/showfiles.php?group_id=4161 \
>     http://prdownload.berlios.de/python/SPE-(.*)-wx.*\.tar\.gz
> but this does not work:
> ~/debian/spe2/spe-0.8.2a+repack$ uscan
> spe: Newer version (0.8.3.c) available on remote site:
>   http://download.berlios.de/python/SPE-0.8.3.c-wx2.6.1.0.tar.gz
>   (local version is 0.8.2a+repack)
> uscan warning: In directory ., downloading
>   http://download.berlios.de/python/SPE-0.8.3.c-wx2.6.1.0.tar.gz failed:
> 403 Forbidden
> when I try to download this file directly with "wget" it works:
Berlios apparently rejects based on User-Agent.

wget -q --header 'User-Agent: libwww-perl/5.805' 'http://developer.berlios.de/project/showfiles.php?group_id=4161' >/dev/null ; echo $?

wget -q 'http://developer.berlios.de/project/showfiles.php?group_id=4161' >/dev/null ; echo $?

I also note the following strange headers sent by uscan, observed with

Connection: TE, close
TE: deflate,gzip;q=0.3

Problems aside, I think you will want something like:
http://developer.berlios.de/project/showfiles.php?group_id=4161 SPE-(.*)-wx.*\.tar\.gz


Reply to: