Bug#346082: approx: doesn't understand HTTP's 302 (FOUND) redirect

2006-01-05 Thread Andrew Lau
Package: approx
Version: 2.03
Severity: normal

Hi Eric,

I have the following URL in approx.conf:
debian  http://ftp.au.debian.org/pub/debian

which is referred to in sources.list as:
deb http://espresso:/debian/ unstable main contrib non-free
(espresso is my local hostname)

However, whenever apt-get tries to download
http://espresso:/debian/dists/unstable/main/binary-i386/Packages.gz
it results in a 404.

From /var/log/daemon.log, I see the following:
Jan  6 00:10:23 espresso approx: Connection from 127.0.0.1:60281
Jan  6 00:10:23 espresso approx: 
http://ftp.au.debian.org/pub/debian/dists/unstable/main/binary-i386/Packages.gz
Jan  6 00:10:23 espresso approx: Unexpected status code: 302

Thanks,
Andrew Netsnipe Lau

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-k7
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages approx depends on:
ii  adduser   3.80   Add and remove users and groups
ii  bzip2 1.0.2-11   high-quality block-sorting file co
ii  curl  7.15.1-1   Get a file from an HTTP, HTTPS, FT
ii  libc6 2.3.5-11   GNU C Library: Shared libraries an
ii  libpcre3  6.4-1.1Perl 5 Compatible Regular Expressi

approx recommends no packages.

-- no debconf information

-- 
--
  Andrew Netsnipe Lau http://www.cse.unsw.edu.au/~alau/
Debian GNU/Linux Maintainer  UNSW Computing Students' Society
  -
I reject your reality and substitute my own!
 - Adam Savage (MythBusters)
--


signature.asc
Description: Digital signature


Bug#346082: approx: doesn't understand HTTP's 302 (FOUND) redirect

2006-01-05 Thread Eric Cooper
Good catch.  I had forgotten to add the --location option to curl.
That's now fixed.  If you don't want to wait for the next upload, you
can use the .deb or tarball in http://www.cs.cmu.edu/~ecc/approx/.

-- 
Eric Cooper e c c @ c m u . e d u


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