Bug#380368: approx: bogus mapping to local repository name

2006-10-15 Thread Tino Keitel
On Wed, Oct 11, 2006 at 18:26:35 +0200, Tino Keitel wrote:
> On Wed, Oct 11, 2006 at 12:06:24 -0400, Eric Cooper wrote:

[...]

> > It's really a simple-minded mapping.  If approx.conf has a line like
> > repohttp://some.machine/dir1/dir2
> > then any request to the approx server of the form
> > http://approx-server/repo/rest/of/URL
> > is rewritten to
> > http:/some.machine/dir1/dir2/rest/of/URL
> > when there's a "cache miss", and that file is cached as
> > /var/cache/approx/repo/rest/of/URL
> 
> Ah, ok. If I'm right, the mapping doesn't work for
> www.debian-multimedia.org, because there is no path element behind the
> host part.
> 
> If there would be e.g. a debian-multimedia directory, then I would use
> http://www.debian-multimedia.org/debian-multimedia as the URL and
> approx could map it to a local repository called debian-multimedia.

Hi,

I now use a www.debian-multimedia.org mirror that has a
"debian-multimedia" path component behind the host name. This works
with approx using a repo called "debian-multimedia".

I think this bug can be closed, maybe your explanation above could be
added to the manpage to help other people who try to understand the
approx behaviour.

Regards,
Tino



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#380368: approx: bogus mapping to local repository name

2006-07-29 Thread Tino Keitel
Package: approx
Version: 2.06
Severity: normal

Hi,

I set up approx to act as a transparent apt cache, so that all systems can
use the proxy without any proxy settings or modification in the
sources.list.

This fails with the apt repository from www.debian-multimedia.org.

This is the corresponding sources.list entry:

deb http://www.debian-multimedia.org sid main 

It is mentioned in the approx configuration:

marillathttp://www.debian-multimedia.org

Approx runs intro this error:

approx: Connection from 10.100.1.252:52200
approx: Request /dists/sid/Release
approx:   Host: www.debian-multimedia.org
approx:   Connection: keep-alive
approx:   If-Modified-Since: Fri, 28 Jul 2006 09:51:27 GMT
approx:   User-Agent: Debian APT-HTTP/1.3
approx: no remote repository found for dists

I don't know why approx uses "dists" here. My understanding of the map line
is that it looks for a local cache named "marillat".

I played around with another repository and now I'm totally confused.

This is the sources list entry:

deb http://home.arcor.de/scorpidnb/mythtv/current/debian/ sid main

This is the approx.conf entry:

foobar  http://home.arcor.de/scorpidnb

Now I get this error message:

approx:   Host: home.arcor.de
approx:   Connection: keep-alive
approx:   User-Agent: Debian APT-HTTP/1.3
approx: no remote repository found for scorpidnb

What is the real purpose of the first argument in the aprrox.conf config
line? The man page doesn't really explain this enough. I would think that
this is the name of the local cache in /var/cache/approx.

I renamed the foobar into scorbidnb and then it worked. However, it didn't
work for www.debian-multimedia.org. I renamed it into dists, but then approx
still failed because it tries to fetch this URL:

http://www.debian-multimedia.org/sid/main/binary-i386/Packages.gz

This is wrong. The correct URL would be this:

http://www.debian-multimedia.org/dists/sid/main/binary-i386/Packages.gz

So, it misses the "dist" here.

I would be glad if you could clarify the mapping configuration and also make
the mapping somewhat more useable, as it currently doesn't seem to work with
certain repositories.

Regards,
Tino

-- System Information:
Debian Release: testing/unstable
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.7
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages approx depends on:
ii  adduser   3.95   Add and remove users and groups
ii  bzip2 1.0.3-3high-quality block-sorting file co
ii  curl  7.15.4-1   Get a file from an HTTP, HTTPS, FT
ii  libc6 2.3.6-16   GNU C Library: Shared libraries
ii  libpcre3  6.4-2  Perl 5 Compatible Regular Expressi

approx recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]