+2008-01-24 Raphael Hertzog <hertzog@debian.org>
+
+ * scripts/dpkg-genchanges.pl: Warn if the current version is
+ smaller than the previous one.
+
2008-01-22 Guillem Jover <guillem@debian.org>
* dpkg-deb/extract.c (extracthalf): Refactor fflush and its buggy
whatever's currently installed. Closes: #151540
Thanks to Colin Watson.
+ [ Raphael Hertzog ]
+ * Add a warning displayed by dpkg-genchanges if the current version is
+ smaller than the previous one. Closes: #4655
+
[ Updated manpages translations ]
* German (Helge Kreutzmann).
use Dpkg::Substvars;
use Dpkg::Vars;
use Dpkg::Changelog qw(parse_changelog);
-use Dpkg::Version qw(parseversion);
+use Dpkg::Version qw(parseversion compare_versions);
textdomain("dpkg-dev");
$substvars->set_version_substvars($changelog->{"Version"});
$substvars->parse($varlistfile) if -e $varlistfile;
+if (defined($prev_changelog) and
+ 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"});
+}
+
if (not is_sourceonly) {
open(FL,"<",$fileslistfile) || &syserr(_g("cannot read files list file"));
while(<FL>) {