diff options
Diffstat (limited to 'git_superproject.py')
-rw-r--r-- | git_superproject.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/git_superproject.py b/git_superproject.py index 9f585e5d..1293f352 100644 --- a/git_superproject.py +++ b/git_superproject.py | |||
@@ -238,8 +238,8 @@ class Superproject(object): | |||
238 | f'{self._manifest.manifestFile}') | 238 | f'{self._manifest.manifestFile}') |
239 | return SyncResult(False, False) | 239 | return SyncResult(False, False) |
240 | 240 | ||
241 | print('NOTICE: --use-superproject is in beta; report any issues to the ' | 241 | _PrintBetaNotice() |
242 | 'address described in `repo version`', file=sys.stderr) | 242 | |
243 | should_exit = True | 243 | should_exit = True |
244 | if not self._remote_url: | 244 | if not self._remote_url: |
245 | self._LogWarning(f'superproject URL is not defined in manifest: ' | 245 | self._LogWarning(f'superproject URL is not defined in manifest: ' |
@@ -364,6 +364,13 @@ class Superproject(object): | |||
364 | return UpdateProjectsResult(manifest_path, False) | 364 | return UpdateProjectsResult(manifest_path, False) |
365 | 365 | ||
366 | 366 | ||
367 | @functools.lru_cache(maxsize=10) | ||
368 | def _PrintBetaNotice(): | ||
369 | """Print the notice of beta status.""" | ||
370 | print('NOTICE: --use-superproject is in beta; report any issues to the ' | ||
371 | 'address described in `repo version`', file=sys.stderr) | ||
372 | |||
373 | |||
367 | @functools.lru_cache(maxsize=None) | 374 | @functools.lru_cache(maxsize=None) |
368 | def _UseSuperprojectFromConfiguration(): | 375 | def _UseSuperprojectFromConfiguration(): |
369 | """Returns the user choice of whether to use superproject.""" | 376 | """Returns the user choice of whether to use superproject.""" |