From 9318f742b7c5b25927f95c9dbfed8e9ffccb8d51 Mon Sep 17 00:00:00 2001 From: Raphael Hertzog Date: Thu, 21 Feb 2008 00:28:10 +0100 Subject: [PATCH] Adjust Dpkg::Changelog::parse_changelog() search list of parser * scripts/Dpkg/Changelog.pm (parse_changelog): Fallback into /usr/lib/dpkg/parsechangelog to find a changelog parser in case $dpkglibdir points to another directory (for example when DPKG_DATADIR is manually set). --- ChangeLog | 7 +++++++ scripts/Dpkg/Changelog.pm | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 92a2adb1..4b804c08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-02-20 Raphael Hertzog + + * scripts/Dpkg/Changelog.pm (parse_changelog): Fallback + into /usr/lib/dpkg/parsechangelog to find changelog parser + in case $dpkglibdir points to another directory (for example + when DPKG_DATADIR is manually set). + 2008-02-19 Frank Lichtenheld * m4/libs.m4 (DPKG_LIB_CURSES): Use libncursesw if diff --git a/scripts/Dpkg/Changelog.pm b/scripts/Dpkg/Changelog.pm index ffa1740e..98f9fe64 100644 --- a/scripts/Dpkg/Changelog.pm +++ b/scripts/Dpkg/Changelog.pm @@ -725,7 +725,8 @@ it's passed as the parameter that follows. sub parse_changelog { my (%options) = @_; my @parserpath = ("/usr/local/lib/dpkg/parsechangelog", - "$dpkglibdir/parsechangelog"); + "$dpkglibdir/parsechangelog", + "/usr/lib/dpkg/parsechangelog"); my $format = "debian"; my $changelogfile = "debian/changelog"; my $force = 0; -- 2.39.5