Re: uscan: limit search to sourceforge directory?

2013-02-23 Thread Bart Martens
On Sat, Feb 23, 2013 at 08:23:55PM +0100, Felix Natter wrote:
> Bart Martens  writes:
> 
> hi Bart,
> 
> > On Sat, Feb 23, 2013 at 07:09:46PM +0100, Felix Natter wrote:
> >> I am using this debian/watch file for 'freeplane':
> >> (...)
> >> Is there a way to limit the search of the sf redirector to 
> >> a directory, i.e.
> >> http://sourceforge.net/projects/freeplane/files/freeplane%20stable/
> >> (or a solution without the sf redirector?)
> >
> > Is this what you're looking for ?
> > http://qa.debian.org/cgi-bin/watchfile.cgi?package=freeplane
> 
> This works great, thank you!

OK.

> 
> Just to understand this: Where does watchfile.cgi pull this from?

See : http://wiki.debian.org/qa.debian.org/HowToHelpWithFixingWatchFiles

> I think you wrote it by hand, didn't you?

Yes.

Regards,

Bart Martens


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130223223727.ga12...@master.debian.org



Re: uscan: limit search to sourceforge directory?

2013-02-23 Thread Felix Natter
Bart Martens  writes:

hi Bart,

> On Sat, Feb 23, 2013 at 07:09:46PM +0100, Felix Natter wrote:
>> I am using this debian/watch file for 'freeplane':
>> (...)
>> Is there a way to limit the search of the sf redirector to 
>> a directory, i.e.
>> http://sourceforge.net/projects/freeplane/files/freeplane%20stable/
>> (or a solution without the sf redirector?)
>
> Is this what you're looking for ?
> http://qa.debian.org/cgi-bin/watchfile.cgi?package=freeplane

This works great, thank you!

Just to understand this: Where does watchfile.cgi pull this from?
I think you wrote it by hand, didn't you?

Best Regards,
-- 
Felix Natter


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/871uc6al6c@bitburger.home.felix



Re: uscan: limit search to sourceforge directory?

2013-02-23 Thread Bart Martens
On Sat, Feb 23, 2013 at 07:09:46PM +0100, Felix Natter wrote:
> I am using this debian/watch file for 'freeplane':
> (...)
> Is there a way to limit the search of the sf redirector to 
> a directory, i.e.
> http://sourceforge.net/projects/freeplane/files/freeplane%20stable/
> (or a solution without the sf redirector?)

Is this what you're looking for ?
http://qa.debian.org/cgi-bin/watchfile.cgi?package=freeplane

Regards,

Bart Martens


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130223183018.ga26...@master.debian.org



uscan: limit search to sourceforge directory?

2013-02-23 Thread Felix Natter
hi,

I am using this debian/watch file for 'freeplane':
version=3
opts=versionmangle=s/\+dfsg1// \
 http://sf.net/freeplane/freeplane_srcpure-(\d+\.\d+\.\d+)\.tar\.gz

The problem is that there are several directories with
freeplane_srcpure-XXX.tar.gz files:
http://sourceforge.net/projects/freeplane/files/freeplane%20stable/
http://sourceforge.net/projects/freeplane/files/freeplane%20preview/
[...]

And the freeplane%20preview directory contains files that should _not_
be considered as releases, but have the same format
(i.e. freeplane%20preview/archive/freeplane_srcpure-1.2.21.tar.gz).

Is there a way to limit the search of the sf redirector to 
a directory, i.e.
http://sourceforge.net/projects/freeplane/files/freeplane%20stable/
(or a solution without the sf redirector?)

I also tried these two:
# use absolute path:
http://sf.net/projects/freeplane/files/freeplane%20stable/freeplane_srcpure-(\d+\.\d+\.\d+)\.tar\.gz
--> 
"http://qa.debian.org/watch/sf.php/projects/freeplane/files/freeplane%20stable/ 
failed: 404 Not Found"

# also absolute path, avoid using sf redirector
http://www.sourceforge.net/projects/freeplane/files/freeplane%20stable/freeplane_srcpure-(\d+\.\d+\.\d+)\.tar\.gz
--> "no matching hrefs for watch line"

The HTML looks like this:

  http://sourceforge.net/projects/freeplane/files/freeplane%20stable/freeplane_srcpure-1.2.20.tar.gz/download";>
freeplane_srcpure-1.2.20.tar.gz


=> so I tried
filenamemangle=s/.*(freeplane_srcpure-\d+\.\d+\.\d+\.tar\.gz)\/download/$1/,
but this does not work either :-(

I read the manpage multiple times, but don't know how to continue.

Thank you and Best Regards,
-- 
Felix Natter


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/871uc6c36d@bitburger.home.felix