diff options
author | Raphael Hertzog <hertzog@debian.org> | 2009-01-27 16:16:50 +0100 |
---|---|---|
committer | Raphael Hertzog <hertzog@debian.org> | 2009-01-27 16:41:55 +0100 |
commit | 706e51941888adc72ae9da2132b240ffe623b71b (patch) | |
tree | 4507561bd0f4f5e80b574ce74645a3da81cc7255 /scripts/dpkg-genchanges.pl | |
parent | 7f866ade51e748e5fb3cb8cb902db62ca7c3ee5e (diff) | |
download | dpkg-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-x | scripts/dpkg-genchanges.pl | 2 |
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"}); } |