Bug#478122: apt-cacher: "uninitialized value" in cleanup

2008-06-26 Thread Frank Doepper
Hi,

how to reproduce this:

# aptitude -R install apt-cacher libwww-perl
# apt-cacher &
# GET
http://localhost:3142/ftp2.de.debian.org/debian/dists/unstable/main/source/Sources.gz
>/dev/null
# /usr/share/apt-cacher/apt-cacher-cleanup.pl

Regards,
FD



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



Bug#478122: apt-cacher: "uninitialized value" in cleanup

2008-05-13 Thread Frank Doepper
Mark Hindley:

> Do you have a Sources file that is the different format?

http://ftp2.de.debian.org/debian/dists/unstable/main/source/Sources.gz

But I wonder if I am on the right way

Regards, Frank.



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



Bug#478122: apt-cacher: "uninitialized value" in cleanup

2008-05-02 Thread Mark Hindley
On Sun, Apr 27, 2008 at 12:27:27PM +0200, Frank Doepper wrote:
> Package: apt-cacher
> Version: 1.5.3
> Severity: normal
> Tags: patch
> 
> 
> Symptom:
> $ /usr/share/apt-cacher/apt-cacher-cleanup.pl
> [...]
> Use of uninitialized value in concatenation (.) or string at 
> /usr/share/apt-cacher/apt-cacher-lib.pl line 138, <$listpipe> line 121229.
> Use of uninitialized value in concatenation (.) or string at 
> /usr/share/apt-cacher/apt-cacher-lib.pl line 138, <$listpipe> line 121230.
> Use of uninitialized value in concatenation (.) or string at 
> /usr/share/apt-cacher/apt-cacher-lib.pl line 138, <$listpipe> line 121253.
> [...]
> 
> Reason:
> "Sources" files are in a different format than expected?!

Thanks,

Do you have a Sources file that is the different format?

Mark



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



Bug#478122: apt-cacher: "uninitialized value" in cleanup

2008-04-27 Thread Frank Doepper
Package: apt-cacher
Version: 1.5.3
Severity: normal
Tags: patch


Symptom:
$ /usr/share/apt-cacher/apt-cacher-cleanup.pl
[...]
Use of uninitialized value in concatenation (.) or string at 
/usr/share/apt-cacher/apt-cacher-lib.pl line 138, <$listpipe> line 121229.
Use of uninitialized value in concatenation (.) or string at 
/usr/share/apt-cacher/apt-cacher-lib.pl line 138, <$listpipe> line 121230.
Use of uninitialized value in concatenation (.) or string at 
/usr/share/apt-cacher/apt-cacher-lib.pl line 138, <$listpipe> line 121253.
[...]

Reason:
"Sources" files are in a different format than expected?!

Workaround:
--- /usr/share/apt-cacher/apt-cacher-lib.pl~2008-04-27 12:22:37.0 
+0200
+++ /usr/share/apt-cacher/apt-cacher-lib.pl 2008-04-27 12:21:12.0 
+0200
@@ -133,7 +133,11 @@
  # Index format similar to Sources but filenames need to be
  # corrected
  # FIXME: this is sha1, not md5. Different format, can be
  # detected by
  # the length (40), though
+if ($indexbase) {
  $file=$indexbase.$2.".gz";
+} else {
+$file=$2;
+}
  }
  elsif(/^\s(\w{32})\s\d+\s(\S+)\n/) {
  $sum=$1;

Regards,
Frank.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'oldstable'), (500, 'unstable'), (500, 
'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22-3-686
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages apt-cacher depends on:
ii  bzip2   1.0.3-6  high-quality block-sorting file co
ii  libwww-perl 5.805-1  WWW client/server library for Perl
ii  perl5.8.8-7etch3 Larry Wall's Practical Extraction 

apt-cacher recommends no packages.

-- no debconf information



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