Joerg Jaspert writes ("Re: Bug#840250: closed by Joerg Jaspert 
<jo...@debian.org> (done (Allow to query for files in archive, closes: 
#840250))"):
> On 14459 March 1977, Ian Jackson wrote:
> > Should the docs eventually appear here
> >  https://ftp-master.debian.org/epydoc/dakweb-module.html?
> 
> They are there.

Indeed I see it now on my workstation.

But I could swear I looked in the "source" module before asking you.
I just checked my other browser on my laptop and when I use the "back"
button to see what I previously looked at it indeed has a page without
it.  My web caches are gaslighting me !

Joerg Jaspert writes ("Re: Bug#840250: closed by Joerg Jaspert 
<jo...@debian.org> (done (Allow to query for files in archive, closes: 
#840250))"):
> And as I had none, I just read some documentation and a FAQ (uh gosh),
> and as such marked the "filepattern" part of the URL as "path", which is
> magic for bottle making it accept requests like
> 
> https://api.ftp-master.debian.org/file_in_archive/t/tmux/%25ar.gz
> https://api.ftp-master.debian.org/file_in_archive/d/dgit/dgit_1.4.tar.gz
> https://api.ftp-master.debian.org/file_in_archive/9/%25.tar.gz
> 
> which is way nicer than URL encoding / is, so we go with that.

Thanks.

> That is, you can specify as much of the path as you want/know, or use
> the %25 to get a % for the SQL LIKE, or combine them. Ought to be
> flexible (and halfway readable) enough.

Right.  That works for me, thanks.

FYI I will be using patterns like this:

  https://api.ftp-master.debian.org/file_in_archive/%25/dgit%5c_1.4.tar.gz

It is necessary to prefix each _ with %5c (the ASCII code for \)
because otherwise _ is interpreted as a single-character wildcard (ie
what conventional shell globbing spells `?'), making the pattern
ambiguous.  (Not sure if there are actually cases right now where this
matters, but that situation is certainly not excluded.)

Not sure if you can, but perhaps it would be worth mentioning this
wrinkle (given Debian's propensity for putting _ in pathnames) and/or
link to the FAQ(s)/docs you found.

Perhaps you should change the tmux example to
  %25/tmux%5c_2.3-1.dsc
since I think that is the correct pattern to match exactly files whose
leafname is tmux_2.3-1.dsc ?

Anyway, thanks for your very quick responses!

Regards,
Ian.

-- 
Ian Jackson <ijack...@chiark.greenend.org.uk>   These opinions are my own.

If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.

Reply via email to