From: Guillem Jover Date: Sun, 22 Jul 2007 00:34:50 +0000 (+0000) Subject: Switch perl 822-date and changelog/debian as well to use the new Dpkg X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae44c7ad2e13699ad7b8002fa56b3f4227366522;p=dpkg Switch perl 822-date and changelog/debian as well to use the new Dpkg module and its variables. --- diff --git a/ChangeLog b/ChangeLog index e79bda57..479cd29d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,8 @@ * scripts/dpkg-statoverride.pl: Likewise. * scripts/install-info.pl: Likewise. * scripts/update-alternatives.pl: Likewise. + * scripts/822-date.pl: Likewise. + * changelog/debian.pl: Likewise. * scripts/controllib.pl (init_substvars): Remove comment about $version needing to be a global variable set elsewhere. diff --git a/scripts/822-date.pl b/scripts/822-date.pl index 4da7da43..c3145451 100755 --- a/scripts/822-date.pl +++ b/scripts/822-date.pl @@ -3,7 +3,8 @@ use strict; use warnings; -our $dpkglibdir = "."; # This line modified by Makefile +use Dpkg; + push(@INC, $dpkglibdir); require 'dpkg-gettext.pl'; textdomain("dpkg-dev"); diff --git a/scripts/changelog/debian.pl b/scripts/changelog/debian.pl index 6504a088..0c8a094f 100755 --- a/scripts/changelog/debian.pl +++ b/scripts/changelog/debian.pl @@ -7,9 +7,7 @@ use strict; use warnings; -our $progname; -our $version = '1.3.0'; # This line modified by Makefile -our $dpkglibdir = "."; # This line modified by Makefile +use Dpkg; push(@INC,$dpkglibdir); require 'controllib.pl';