Author: rra
Date: 2007-12-04 09:05:42 +0100 (Tue, 04 Dec 2007)
New Revision: 1038

Modified:
   trunk/checks/changelog-file
   trunk/checks/changelog-file.desc
   trunk/debian/changelog
   trunk/testset/non-us/debian/changelog
   trunk/testset/non-us/debian/control
   trunk/testset/non-us/debian/rules
   trunk/testset/tags.non-us
Log:
* checks/changelog-file{.desc,}:
  + [RA] Check that the latest changelog entry has a later version than
    the previous entry.  Thanks, Thijs Kinkhorst.  (Closes: #449257)

Modified: trunk/checks/changelog-file
===================================================================
--- trunk/checks/changelog-file 2007-12-04 06:05:03 UTC (rev 1037)
+++ trunk/checks/changelog-file 2007-12-04 08:05:42 UTC (rev 1038)
@@ -285,13 +285,20 @@
     }
 
     if (@entries > 1) {
-       my $first_timestamp = ($changes->data)[0]->Timestamp;
-       my $second_timestamp = ($changes->data)[1]->Timestamp;
+       my $first_timestamp = $entries[0]->Timestamp;
+       my $second_timestamp = $entries[1]->Timestamp;
 
-       if ( $first_timestamp && $second_timestamp ) {
+       if ($first_timestamp && $second_timestamp) {
            tag "latest-debian-changelog-entry-without-new-date"
                unless (($first_timestamp - $second_timestamp) > 0);
        }
+
+       my $first_version = $entries[0]->Version;
+       my $second_version = $entries[1]->Version;
+       if ($first_version and $second_version) {
+           tag "latest-debian-changelog-entry-without-new-version"
+               unless Dep::versions_gt ($first_version, $second_version);
+       }
     }
 }
 

Modified: trunk/checks/changelog-file.desc
===================================================================
--- trunk/checks/changelog-file.desc    2007-12-04 06:05:03 UTC (rev 1037)
+++ trunk/checks/changelog-file.desc    2007-12-04 08:05:42 UTC (rev 1038)
@@ -157,9 +157,14 @@
 
 Tag: latest-debian-changelog-entry-without-new-date
 Type: warning
-Info: The latest Debian changelog has either the same or even an older
- date as the entry before.
+Info: The latest Debian changelog entry has either the same or even an
+ older date as the entry before.
 
+Tag: latest-debian-changelog-entry-without-new-version
+Type: warning
+Info: The latest Debian changelog entry has a version number that's either
+ the same or smaller than the version number of the entry before.
+
 Tag: syntax-error-in-debian-changelog
 Type: warning
 Info: While parsing the Debian changelog, an syntax error was found.

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2007-12-04 06:05:03 UTC (rev 1037)
+++ trunk/debian/changelog      2007-12-04 08:05:42 UTC (rev 1038)
@@ -10,6 +10,9 @@
     + [RA] Ignore the gf suffix from the gfortran migration when checking
       whether the package name matches the SONAME.  Thanks, Kevin
       B. McCarty.  (Closes: #448207)
+  * checks/changelog-file{.desc,}:
+    + [RA] Check that the latest changelog entry has a later version than
+      the previous entry.  Thanks, Thijs Kinkhorst.  (Closes: #449257)
   * checks/common_data.pm:
     + [RA] Add Dm-Upload-Allowed as a control field.  (Closes: #453779)
   * checks/control-file:

Modified: trunk/testset/non-us/debian/changelog
===================================================================
--- trunk/testset/non-us/debian/changelog       2007-12-04 06:05:03 UTC (rev 
1037)
+++ trunk/testset/non-us/debian/changelog       2007-12-04 08:05:42 UTC (rev 
1038)
@@ -1,5 +1,11 @@
 non-us (1) unstable; urgency=low
 
+  * Another initial version.
+
+ -- Russ Allbery <[EMAIL PROTECTED]>  Mon, 03 Dec 2007 23:42:09 -0800
+
+non-us (1) unstable; urgency=low
+
   * Initial version
 
  -- Sean 'Shaleh' Perry <[EMAIL PROTECTED]>  Wed, 31 Jan 2001 14:27:20 -0800

Modified: trunk/testset/non-us/debian/control
===================================================================
--- trunk/testset/non-us/debian/control 2007-12-04 06:05:03 UTC (rev 1037)
+++ trunk/testset/non-us/debian/control 2007-12-04 08:05:42 UTC (rev 1038)
@@ -1,7 +1,8 @@
 Source: non-us
 Priority: optional
 Maintainer: Lintian Maintainer <[EMAIL PROTECTED]>
-Uploaders: Sean 'Shaleh' Perry <[EMAIL PROTECTED]>
+Uploaders: Sean 'Shaleh' Perry <[EMAIL PROTECTED]>,
+ Russ Allbery <[EMAIL PROTECTED]>
 Standards-Version: 3.1.1
 
 Package: patented-app

Modified: trunk/testset/non-us/debian/rules
===================================================================
--- trunk/testset/non-us/debian/rules   2007-12-04 06:05:03 UTC (rev 1037)
+++ trunk/testset/non-us/debian/rules   2007-12-04 08:05:42 UTC (rev 1038)
@@ -12,6 +12,8 @@
 binary-indep:
        # patented-app
        install -d debian/$(PATENT)-tmp/DEBIAN
+       install -d debian/$(PATENT)-tmp/usr/share/doc/$(PATENT)
+       gzip -9c debian/changelog > 
debian/$(PATENT)-tmp/usr/share/doc/$(PATENT)/changelog.gz
        dpkg-gencontrol -isp -p$(PATENT) -Pdebian/$(PATENT)-tmp
        dpkg --build debian/$(PATENT)-tmp ..
 

Modified: trunk/testset/tags.non-us
===================================================================
--- trunk/testset/tags.non-us   2007-12-04 06:05:03 UTC (rev 1037)
+++ trunk/testset/tags.non-us   2007-12-04 08:05:42 UTC (rev 1038)
@@ -5,7 +5,9 @@
 E: nonfree-crypto-app: no-copyright-file
 E: patented-app: no-copyright-file
 I: non-us source: no-section-field-for-source
+I: patented-app: no-md5sums-control-file
 I: patented-app: non-us-spelling
 W: broken-crypto: unknown-section non-US/admin
 W: non-us source: ancient-standards-version 3.1.1 (current is 3.7.3)
 W: non-us source: no-section-field
+W: patented-app: latest-debian-changelog-entry-without-new-version


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to