]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
syntax-check: Use VC_LIST_EXCEPT in sc_prohibit_backup_files
authorAndrea Bolognani <abologna@redhat.com>
Mon, 23 May 2022 15:11:55 +0000 (17:11 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 24 May 2022 09:09:41 +0000 (11:09 +0200)
We can assume that VC_LIST_ALWAYS_EXCLUDE_REGEX will not be
defined in a way that would catch backup files.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
build-aux/syntax-check.mk

index 5244d4ee2ddce26f5e54237a5f36f4f1ff3cb83e..d6f2a0602db98beae199d472da0a7af824a71d1d 100644 (file)
@@ -1326,7 +1326,7 @@ sc_prohibit_defined_have_decl_tests:
 
 # Prohibit checked in backup files.
 sc_prohibit_backup_files:
-       @$(VC_LIST) | $(GREP) '~$$' &&                                  \
+       @$(VC_LIST_EXCEPT) | $(GREP) '~$$' && \
          { echo '$(ME): found version controlled backup file' 1>&2;    \
            exit 1; } || :