chiark / gitweb /
Better error message for use of UNRELEASED suite. Closes: #720523.
[dgit.git] / dgit
diff --git a/dgit b/dgit
index 77a9bb6025306fda3d3661a82460c73542669d89..55c2b243d3b6dfa1d11909d3242acf533883028c 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -415,6 +415,8 @@ sub canonicalise_suite_madison ($$) {
 }
 
 sub canonicalise_suite () {
+    return if defined $csuite;
+    fail "cannot operate on $isuite suite" if $isuite eq 'UNRELEASED';
     $csuite = archive_query('canonicalise_suite');
     if ($isuite ne $csuite) {
        # madison canonicalises for us