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

Bug#597663: marked as done (API or http redirect to get archive pool path)



Your message dated Wed, 22 Sep 2010 01:22:48 +0200
with message-id <20100921232248.GP10424@anguilla.noreply.org>
and subject line Re: Bug#597663: API or http redirect to get archive pool path
has caused the Debian Bug report #597663,
regarding API or http redirect to get archive pool path
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
597663: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597663
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message --- Package:�snapshot.debian.org
Severity: wishlist
Tags: feature

Hi!

Can we have at�API�or/and some http header redirect to get archive pool path ?

Example:�curl -sI�http://snapshot.debian.net/package/ksymoops/2.4.11-1

If I grep the "location:" in the http header, I can get the correct url easily. Currently,�I can't find a way to do the same with this new snapshots.

Thank you

--
Marco Rodrigues

http://www.marblehole.com

--- End Message ---
--- Begin Message ---
On Tue, 21 Sep 2010, Marco Rodrigues wrote:

> Can we have at API or/and some http header redirect to get archive pool path
> ?
> 
> Example: curl -sI http://snapshot.debian.net/package/ksymoops/2.4.11-1
> 
> If I grep the "location:" in the http header, I can get the correct url
> easily. Currently, I can't find a way to do the same with this new
> snapshots.

It's not as easy as you think it is.  There is no canonical "archive
pool path" for any package since a package's files can exist in many
different archives.

The closest thing to what you might want is
http://snapshot.debian.org/package/ksymoops/2.4.11-1/
however it's not a good example since that version only ever existed in
debian proper it seems.

http://snapshot.debian.org/package/keepalived/1.1.15-1/ on the other
hand references files in debian, debian-ports and also debian-backports.

Or http://snapshot.debian.org/package/wget/1.11.4-2%2Blenny2/


The machine readable interface is at /mr/package.., as documented at
http://git.debian.org/?p=mirror/snapshot.debian.org.git;a=blob_plain;f=API
e.g.
wget -q -O - 'http://snapshot.debian.org/mr/package/ksymoops/2.4.11-1/srcfiles?fileinfo=1'   or
wget -q -O - 'http://snapshot.debian.org/mr/package/ksymoops/2.4.11-1/allfiles?fileinfo=1'
or
curl 'http://snapshot.debian.org/mr/package/wget/1.11.4-2%2Blenny2/srcfiles?fileinfo=1'

Hope that helps, if not, please ask.


Out of interest, what are you trying to build?

Cheers,
Peter
-- 
                           |  .''`.  ** Debian GNU/Linux **
      Peter Palfrader      | : :' :      The  universal
 http://www.palfrader.org/ | `. `'      Operating System
                           |   `-    http://www.debian.org/


--- End Message ---

Reply to: