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

Re: debian/watch problem due to http://code.google.com download page's link format change



Am Samstag, den 15.05.2010, 17:16 +0800 schrieb Asias He:

> Recently, code.google.com changed the download page link format.
> As a result, the old debian/watch file in packages whose upstream source code
> hosted on code.google.com did work anymore.
> 
> Take the ibus project for example:
> $ cat ibus/debian/watch
> version=3
> http://code.google.com/p/ibus/downloads/list \
> http://ibus.googlecode.com/files/ibus-([0-9].*)\.tar\.gz
> 
> The new download page contain the "detail" link, one has to follow
> the new "detail" link in order to find the real download url.
> something like this:
> http://code.google.com/p/ibus/downloads/list
> http://code.google.com/p/ibus/downloads/detail?name=ibus-1.3.3.tar.gz&can=2&q=
> http://ibus.googlecode.com/files/ibus-1.3.3.tar.gz
> 
> I believe this problem affects all the packages whose upstream source
> code is hosted on code.google.com.
> 
> Is there an easy way to deal this.

The URL at http://code.google.com/p/ibus/downloads/list itself tells you
everything you need: the version number. And you have a static download
location. So what you need to do is to rewrite the download URL to point
to http://ibus.googlecode.com/files/ibus-$(version).tar.gz and you must
rewrite the filename. With the above URL it will be "detail" and it
should of course be "ibus-$(version).tar.gz".

See the attached file. Maybe some redirector at qa.d.o would be easier
for people. But the change at code.g.c itself doesn't affect your
ability to check and download the latest source file.

PS: The same BTW goes for sf.net! I would prefer if the necessary
(automatic) rewrites would be added to uscan (maybe as modules) and not
via redirectors. They are not necessary for sf.net nor code.g.c. But
that's my opinion.

Regards, Daniel

Attachment: watch.ibus
Description: application/fluid


Reply to: