From 205c27d8b9b248beb4c5631b647143805a2dc317 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Tue, 4 Dec 2018 18:02:31 +0900 Subject: git source plugin: Rename symbol for consistency and readability Change 'INCONSISTENT_SUBMODULE' for 'WARN_INCONSISTENT_SUBMODULE' to make things a bit more readable and comprehensive. --- buildstream/plugins/sources/git.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildstream/plugins/sources/git.py b/buildstream/plugins/sources/git.py index f404a8528..7496f1f13 100644 --- a/buildstream/plugins/sources/git.py +++ b/buildstream/plugins/sources/git.py @@ -157,7 +157,7 @@ from buildstream.utils import move_atomic, DirectoryExistsError GIT_MODULES = '.gitmodules' # Warnings -INCONSISTENT_SUBMODULE = "inconsistent-submodule" +WARN_INCONSISTENT_SUBMODULE = "inconsistent-submodule" # Because of handling of submodules, we maintain a GitMirror @@ -408,7 +408,8 @@ class GitMirror(SourceFetcher): "underlying git repository with `git submodule add`." self.source.warn("{}: Ignoring inconsistent submodule '{}'" - .format(self.source, submodule), detail=detail, warning_token=INCONSISTENT_SUBMODULE) + .format(self.source, submodule), detail=detail, + warning_token=WARN_INCONSISTENT_SUBMODULE) return None -- cgit v1.2.1