summaryrefslogtreecommitdiff
path: root/scripts/Dpkg.pm
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2012-10-29 18:16:52 +0100
committerGuillem Jover <guillem@debian.org>2013-06-21 20:29:25 +0200
commita55de1500d33db1192e5c2ace48e58baf252f8b9 (patch)
tree720f6cd2520d977595ecd04ae34f29f0ea865b14 /scripts/Dpkg.pm
parentc4a75309f62d9dcd78f810500a8db3e576fdaa38 (diff)
downloaddpkg-a55de1500d33db1192e5c2ace48e58baf252f8b9.tar.gz
scripts: Use a new Dpkg::CONFDIR variable instead of literal strings
This will make life easier for downstreams using different paths. Allow overriding pkgconfdir at configure time.
Diffstat (limited to 'scripts/Dpkg.pm')
-rw-r--r--scripts/Dpkg.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Dpkg.pm b/scripts/Dpkg.pm
index 6fdc78c76..47ad0843e 100644
--- a/scripts/Dpkg.pm
+++ b/scripts/Dpkg.pm
@@ -19,12 +19,14 @@ use warnings;
our $VERSION = '1.00';
use base qw(Exporter);
+our @EXPORT_OK = qw($CONFDIR);
our @EXPORT = qw($version $progname $admindir $dpkglibdir $pkgdatadir);
our ($progname) = $0 =~ m{(?:.*/)?([^/]*)};
# The following lines are automatically fixed at install time
our $version = '1.17.x';
+our $CONFDIR = '/etc/dpkg';
our $admindir = '/var/lib/dpkg';
our $dpkglibdir = '.';
our $pkgdatadir = '..';