[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#504070: Patch



Hi

attached is patch which implements suggested check.

-- 
	Michal Čihař | http://cihar.com | http://blog.cihar.com
diff --git a/checks/changelog-file b/checks/changelog-file
index c8c69e1..966e120 100644
--- a/checks/changelog-file
+++ b/checks/changelog-file
@@ -293,6 +293,8 @@ if (@entries) {
 	    tag "latest-debian-changelog-entry-without-new-version"
 		unless Dep::versions_gt ($first_version, $second_version)
                     or $entries[0]->Changes =~ /backport/i;
+	    tag "latest-debian-changelog-entry-changed-to-native"
+		unless $first_version =~ m/-/ or $second_version !~ m/-/;
 	}
     }
 
diff --git a/checks/changelog-file.desc b/checks/changelog-file.desc
index cb2a9c4..29aabac 100644
--- a/checks/changelog-file.desc
+++ b/checks/changelog-file.desc
@@ -184,6 +184,13 @@ Certainty: certain
 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: latest-debian-changelog-entry-changed-to-native
+Severity: normal
+Certainty: possible
+Info: The latest package is native, while previous version was not. This is
+ usually mistake made by maintainer by forgotting to append -1 when uploading
+ new upstream version.
+
 Tag: syntax-error-in-debian-changelog
 Severity: normal
 Certainty: possible

Attachment: signature.asc
Description: PGP signature


Reply to: