summaryrefslogtreecommitdiff
path: root/scripts/dpkg-genchanges.pl
diff options
context:
space:
mode:
authorRaphael Hertzog <hertzog@debian.org>2009-01-27 16:16:50 +0100
committerRaphael Hertzog <hertzog@debian.org>2009-01-27 16:41:55 +0100
commit706e51941888adc72ae9da2132b240ffe623b71b (patch)
tree4507561bd0f4f5e80b574ce74645a3da81cc7255 /scripts/dpkg-genchanges.pl
parent7f866ade51e748e5fb3cb8cb902db62ca7c3ee5e (diff)
downloaddpkg-706e51941888adc72ae9da2132b240ffe623b71b.tar.gz
Dpkg::Version fix and test-suite adjustment
* scripts/t/900_Dpkg_Version.t: Renamed into... * scripts/t/100_Dpkg_Version.t: and merged test cases previously provided by this file so that there's no loss of tests. Also adjusted test cases to match the change below. * scripts/Dpkg/Version.pm (compare_versions): Handle "<" like "<=" and ">" like ">=" in order to be consistent with dpkg --compare-versions. Emit warnings when they are used as they are deprecated. * scripts/Makefile.am: Drop scripts/t/900_Dpkg_Version.t from the set of extra files to distribute. * scripts/dpkg-genchanges.pl: Use "<<" instead of ambiguous "<" in version comparison.
Diffstat (limited to 'scripts/dpkg-genchanges.pl')
-rwxr-xr-xscripts/dpkg-genchanges.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dpkg-genchanges.pl b/scripts/dpkg-genchanges.pl
index 885cd5195..542d2f532 100755
--- a/scripts/dpkg-genchanges.pl
+++ b/scripts/dpkg-genchanges.pl
@@ -208,7 +208,7 @@ $substvars->set_version_substvars($changelog->{"Version"});
$substvars->parse($varlistfile) if -e $varlistfile;
if (defined($prev_changelog) and
- compare_versions($changelog->{"Version"}, '<', $prev_changelog->{"Version"})) {
+ compare_versions($changelog->{"Version"}, '<<', $prev_changelog->{"Version"})) {
warning(_g("the current version (%s) is smaller than the previous one (%s)"),
$changelog->{"Version"}, $prev_changelog->{"Version"});
}