/usr/share/perl5/Debconf/DbDriver/Debug.pm is in debconf 1.5.49.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | #!/usr/bin/perl -w
# This file was preprocessed, do not edit!
package Debconf::DbDriver::Debug;
use strict;
use Debconf::Log qw{:all};
use base 'Debconf::DbDriver';
use fields qw(db);
sub init {
my $this=shift;
if (! ref $this->{db}) {
$this->{db}=$this->driver($this->{db});
unless (defined $this->{db}) {
$this->error("could not find db");
}
}
}
sub DESTROY {}
sub AUTOLOAD {
my $this=shift;
(my $command = our $AUTOLOAD) =~ s/.*://;
debug "db $this->{name}" => "running $command(".join(",", map { "'$_'" } @_).") ..";
if (wantarray) {
my @ret=$this->{db}->$command(@_);
debug "db $this->{name}" => "$command returned (".join(", ", @ret).")";
return @ret if @ret;
}
else {
my $ret=$this->{db}->$command(@_);
if (defined $ret) {
debug "db $this->{name}" => "$command returned \'$ret\'";
return $ret;
}
else {
debug "db $this->{name}" => "$command returned undef";
}
}
return; # failure
}
1
|