I'm running into a similar (potentially related?) issue running
1.6.1 on sid (checksumming enabled, configured for daemon mode).
Noticed that the daily cronjob was failing, complaining:

Could not read config file: No such file or directory at 
/usr/share/apt-cacher//apt-cacher-lib.pl line 39.

I think I narrowed it down to invocation of abs_path($configfile)
clearing out the variable the second time around. I modified the
script so that it looks like:

warn "Configfile is $configfile\n";
abs_path($configfile);
warn "Configfile is $configfile\n";

And get the following output from the cronjob now:

Configfile is /etc/apt-cacher/apt-cacher.conf
Configfile is /etc/apt-cacher/apt-cacher.conf
Configfile is /etc/apt-cacher/apt-cacher.conf
Use of uninitialized value in concatenation (.) or string at 
/usr/share/apt-cacher/apt-cacher-cleanup.pl line 61.
Configfile is
Could not read config file: No such file or directory at 
/usr/share/apt-cacher//apt-cacher-lib.pl line 39.

Note the fourth time it tries to use warn, it complains that
$configfile is an uninitialized value immediately following the call
to abs_path(). (I haven't dissected the script enough to determine
why it's going through this section of code twice, nor what would be
different about the second pass.)

Since /etc/apt-cacher/apt-cacher.conf is already an absolute path, I
tested commenting out the abs_path() call completely. After doing
so, the script runs to completion.



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

Reply via email to