Dpkg.pm 657 B

12345678910111213141516171819202122232425
  1. package Dpkg;
  2. use strict;
  3. use warnings;
  4. # This module is the only one provided by dpkg and not dpkg-dev
  5. #
  6. # Don't add things here if you don't need them in dpkg itself.
  7. # If you do, and also use the new stuff in dpkg-dev, you'll have to bump
  8. # the dependency of dpkg-dev on dpkg.
  9. use base qw(Exporter);
  10. our @EXPORT = qw($version $progname $admindir $dpkglibdir $pkgdatadir);
  11. our ($progname) = $0 =~ m#(?:.*/)?([^/]*)#;
  12. # The following lines are automatically fixed at install time
  13. our $version = "1.14";
  14. our $admindir = "/var/lib/dpkg";
  15. our $dpkglibdir = ".";
  16. our $pkgdatadir = "..";
  17. $pkgdatadir = $ENV{DPKG_DATADIR} if defined $ENV{DPKG_DATADIR};
  18. 1;