#!/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
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Backup.pm | File | 1.6 KB | 0644 |
|
Cache.pm | File | 4.71 KB | 0644 |
|
Copy.pm | File | 950 B | 0644 |
|
Debug.pm | File | 950 B | 0644 |
|
DirTree.pm | File | 1.94 KB | 0644 |
|
Directory.pm | File | 3.52 KB | 0644 |
|
File.pm | File | 3.55 KB | 0644 |
|
LDAP.pm | File | 6.08 KB | 0644 |
|
PackageDir.pm | File | 3.58 KB | 0644 |
|
Pipe.pm | File | 1.74 KB | 0644 |
|
Stack.pm | File | 5.13 KB | 0644 |
|