From 66f4ccc0e2c6667ce720cdd74806b0397f104154 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 24 Aug 2013 18:01:30 +0100 Subject: In push, double-check the .changes against the changelog. --- dgit | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dgit') diff --git a/dgit b/dgit index df4ea91..6665298 100755 --- a/dgit +++ b/dgit @@ -849,6 +849,11 @@ sub dopush () { ($changesfile) = @cs; } } + my $changes = parsecontrol($changesfile,$changesfile); + foreach my $field (qw(Source Distribution Version)) { + $changes->{$field} eq $clogp->{$field} or + fail "changes field $field \`$changes->{$field}'" + " does not match changelog \`$clogp->{$field}'"; my $tag = debiantag($dversion); if (!check_for_git()) { create_remote_git_repo(); -- cgit v1.2.3