summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2018-10-29 13:32:30 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2022-01-02 00:00:22 +0000
commit19d92d2ed47f276805841cb2b06308bf5ca6925a (patch)
tree06d8d38330752a0b410433a696a23efaedaaf319
parentae623335a56cf26b0f188c5d834939d274213b65 (diff)
dgit: pseudomerge_version_check: Check for unfinalised changelog entry
This detects the case where d/changelog contains an unfinalised entry for $v (the version being overwritten). (This could only happen if $v is not the first entry, so this changelog is quite badly wrong.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xdgit5
1 files changed, 5 insertions, 0 deletions
diff --git a/dgit b/dgit
index 3a1dbc9..24ed457 100755
--- a/dgit
+++ b/dgit
@@ -4173,6 +4173,11 @@ sub pseudomerge_version_check ($$) {
Your tree seems to based on earlier (not uploaded) %s.
END
if $cd->[0] =~ m/UNRELEASED/;
+ fail f_ <<END, $v, $v
+d/changelog entry for %s is unfinalised!
+Your tree seems to based on earlier (not uploaded) %s.
+END
+ unless defined $vclogp->{Date};
}
}