James McCoy <[email protected]> writes:

> On Sat, Mar 10, 2012 at 05:52:53PM +0100, Goswin von Brederlow wrote:
>> I've seen that the uscan manpage contains an example for projects on
>> github through a redirector. But my project is on git.debian.org and
>> that doesn't have such a redirector. So that doesn't help.
>> 
>> It would be nice if one could specify a git repository directly and
>> have uscan scan the tags for new releases without having to go through
>> a redirector. Or at least gitweb could be supported using the tags
>> section to find releases:
>> 
>> http://anonscm.debian.org/gitweb/?p=pkg-ocaml-maint/packages/libaio-ocaml.git;a=tags
>> 
>> Or if that already is supported then please add an example to the
>> manpage for it.
>
> Isn't that just another case of the "homepage" style usage?  Specify the
> page to scan and the href patterns to match, potentially with a
> filenamemangle option to download a tarball of the tagged tree.

I'm no expert in watch files but I couldn't get it to work. The problem
as I see it is that the href for the tarball contains only the commit
id. The tag is only used as name for the link. Looking for upstream/x.y
in the "homepage" will not find any match in the hrefs.

Next to download the orig.tar.gz you need to look on the tags page for
the right tag, follow that link and then follow the "snapshot" link on
that page. So you have an extra indirection in there. The indirection
could be avoided if one could extract the commit-id from the href and
plug it into a second url. Something like:

http://server/page tag-to-look-for pattern-to-create-url-from-href


This could easily be fixed with another redirector. But I'm not sure if
adding more and more redirectors is the right solution if the problem
could be solved in uscan itself.

MfG
        Goswin




-- 
To unsubscribe, send mail to [email protected].

Reply via email to