chiark / gitweb /
dgit: -wn clean check is a no-op
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Oct 2018 12:30:46 +0000 (13:30 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Oct 2018 15:46:47 +0000 (16:46 +0100)
Handle this explicitly in the clean_tree_check conditional and in the
test suite.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit
tests/lib-build-modes

diff --git a/dgit b/dgit
index 52ae472..4587af2 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -6242,6 +6242,7 @@ sub clean_tree_check () {
        # If we were actually cleaning these files would be summarily
        # deleted.  Since we're not, and not using the working tree
        # anyway, we can just ignore them - nothing will use them.
+    } elsif ($cleanmode eq 'none') {
     }
 }
 
index 7d0d9fd..78ae236 100644 (file)
@@ -158,7 +158,7 @@ bm-compute-expected () {
                        bm-build-deps-ok || tolerate_fail=tolerate
                        echo >&4 "EXAMPLE RULES TARGET clean"
                        ;;
-       none)           ;;
+       none|Cnone)     ;;
        Cdpkg-source*)  ;; # handled below
        Cgit|Cgit-ff)   ;;
        C*)             echo "TODO bm eff_cleanmode=$eff_cleanmode" ;;