Package: pdbv
Version: 2.0.9.3
Severity: normal
Tags: patch
According to the changelog, the upgrade from 2.0.9.2 to .3 contained
only updated translations. However, it results in the cronjobs
outputting an error message:
> Unable to run /etc/pdbv/pdbvrc Most commonly, it's a privilege issue.
> Asked at /usr/bin/pdbv line 1229.
This remains true after a purge and fresh default install. A diff
of /usr/bin/pdbv versions implies that the main change is here:
--- pdbv.old
+++ pdbv.new
@@ -1223,9 +1226,7 @@
}
sub PdbvReadConf {
if (-e $_[0]) {
- print "source $_[0]" if $debug;
- do $_[0] or my $failed =1;
- warn "Unable to run ".$_[0], RED,"Most commonly, it's a privilege
issue.",RESET,"\nAsked" if $failed && $debug;
+ do $_[0] or warn "Unable to run ".$_[0], RED,"Most commonly, it's a
privilege issue.",RESET,"\nAsked";
}
}
sub PdbvExecutionTime {
So; the problem isn't that it has started failing so much as that it
has started complaining. However, the complaint is mistaken! If I
add a line to the end of the pdbvrc saying "warn 'I RAN';0;", I find
that it does run, but arrives together with a claim that it was
unable to run. But turn the 0 to 1 and it's happy.
All that matters is whether a return value exists, not whether the
last variable was set to 0 or 1. The fix is one extra word:
sub PdbvReadConf {
if (-e $_[0]) {
defined do $_[0] or warn "Unable to run ".$_[0], RED,"Most commonly,
it's a privilege issue.",RESET,"\nAsked";
}
}
Hope this helps, and many thanks for the package.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i586)
Kernel: Linux 2.6.9
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Versions of packages pdbv depends on:
ii coreutils [fileutils] 5.2.1-2 The GNU core utilities
ii debconf 1.4.30.11 Debian configuration management sy
ii liblocale-gettext-perl 1.01-17 Using libc functions for internati
ii perl-base 5.8.4-5 The Pathologically Eclectic Rubbis
ii perl-modules 5.8.4-5 Core Perl modules
-- debconf information:
pdbv/cron: hourly
* pdbv/clean_output_dir: true
pdbv/force: false
pdbv/listing: all
* pdbv/cron_lang:
pdbv/light: false
* pdbv/output_dir: /var/www/pdbv
--
JBR
Ankh kak! (Ancient Egyptian blessing)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]