Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

4 views
Skip to first unread message

Frank Doepper

unread,
Apr 27, 2008, 6:40:23 AM4/27/08
to
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.000000000 +0200
+++ /usr/share/apt-cacher/apt-cacher-lib.pl 2008-04-27 12:21:12.000000000 +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 perl 5.8.8-7etch3 Larry Wall's Practical Extraction

apt-cacher recommends no packages.

-- no debconf information

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Mark Hindley

unread,
May 2, 2008, 7:30:10 AM5/2/08
to
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

Frank Doepper

unread,
May 13, 2008, 12:10:11 PM5/13/08
to
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.

0 new messages