On Thu, 20 Aug 2009 at 23:07:38 -0700, Russ Allbery wrote: > While we can't easily check for mismatches between the *.changes file > and the debian/changelog file in the source package, the latter is > copied into *.changes as the Changes field. We can therefore check > whether the distribution in the first line of the Changes field matches > the Distribution.
This has come up on -devel again, which reminded me that this didn't get merged. Please could a maintainer review it? I believe it's ready (unless the requirements for a new Lintian check have changed significantly since I last revised it in 2015). ssh://git.debian.org/git/users/smcv/lintian.git changes-vs-changes If alterations are needed, I will try to do them quickly. For tl;dr purposes, a reminder of what it will typically emit: > # sbuild -d unstable, debian/changelog says experimental > # (the case you typically have to fix with epochs) > E: mypackage changes: distribution-and-experimental-mismatch unstable > > # sbuild -d unstable, debian/changelog says UNRELEASED > E: mypackage changes: unreleased-changes > > # sbuild -d stable, debian/changelog says unstable > # (or other distributions known to Lintian) > W: mypackage changes: distribution-and-changes-mismatch stable unstable Regards, S