diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1262,7 +1262,7 @@ class Project(object): | |||
1262 | try: | 1262 | try: |
1263 | platform_utils.remove(tarpath) | 1263 | platform_utils.remove(tarpath) |
1264 | except OSError as e: | 1264 | except OSError as e: |
1265 | logger.warn("warn: Cannot remove archive %s: %s", tarpath, e) | 1265 | logger.warning("warn: Cannot remove archive %s: %s", tarpath, e) |
1266 | self._CopyAndLinkFiles() | 1266 | self._CopyAndLinkFiles() |
1267 | return SyncNetworkHalfResult(True) | 1267 | return SyncNetworkHalfResult(True) |
1268 | 1268 | ||
@@ -1759,7 +1759,7 @@ class Project(object): | |||
1759 | """ | 1759 | """ |
1760 | if self.IsDirty(): | 1760 | if self.IsDirty(): |
1761 | if force: | 1761 | if force: |
1762 | logger.warn( | 1762 | logger.warning( |
1763 | "warning: %s: Removing dirty project: uncommitted changes " | 1763 | "warning: %s: Removing dirty project: uncommitted changes " |
1764 | "lost.", | 1764 | "lost.", |
1765 | self.RelPath(local=False), | 1765 | self.RelPath(local=False), |
@@ -3038,7 +3038,7 @@ class Project(object): | |||
3038 | # hardlink below. | 3038 | # hardlink below. |
3039 | if not filecmp.cmp(stock_hook, dst, shallow=False): | 3039 | if not filecmp.cmp(stock_hook, dst, shallow=False): |
3040 | if not quiet: | 3040 | if not quiet: |
3041 | logger.warn( | 3041 | logger.warning( |
3042 | "warn: %s: Not replacing locally modified %s hook", | 3042 | "warn: %s: Not replacing locally modified %s hook", |
3043 | self.RelPath(local=False), | 3043 | self.RelPath(local=False), |
3044 | name, | 3044 | name, |
@@ -4336,7 +4336,7 @@ class ManifestProject(MetaProject): | |||
4336 | self.config.SetBoolean("repo.worktree", worktree) | 4336 | self.config.SetBoolean("repo.worktree", worktree) |
4337 | if is_new: | 4337 | if is_new: |
4338 | self.use_git_worktrees = True | 4338 | self.use_git_worktrees = True |
4339 | logger.warn("warning: --worktree is experimental!") | 4339 | logger.warning("warning: --worktree is experimental!") |
4340 | 4340 | ||
4341 | if archive: | 4341 | if archive: |
4342 | if is_new: | 4342 | if is_new: |
@@ -4400,7 +4400,7 @@ class ManifestProject(MetaProject): | |||
4400 | 4400 | ||
4401 | self.config.SetBoolean("repo.git-lfs", git_lfs) | 4401 | self.config.SetBoolean("repo.git-lfs", git_lfs) |
4402 | if not is_new: | 4402 | if not is_new: |
4403 | logger.warn( | 4403 | logger.warning( |
4404 | "warning: Changing --git-lfs settings will only affect new " | 4404 | "warning: Changing --git-lfs settings will only affect new " |
4405 | "project checkouts.\n" | 4405 | "project checkouts.\n" |
4406 | " Existing projects will require manual updates.\n" | 4406 | " Existing projects will require manual updates.\n" |
@@ -4512,7 +4512,7 @@ class ManifestProject(MetaProject): | |||
4512 | submanifest = "" | 4512 | submanifest = "" |
4513 | if self.manifest.path_prefix: | 4513 | if self.manifest.path_prefix: |
4514 | submanifest = f"for {self.manifest.path_prefix} " | 4514 | submanifest = f"for {self.manifest.path_prefix} " |
4515 | logger.warn( | 4515 | logger.warning( |
4516 | "warning: git update of superproject %s failed, " | 4516 | "warning: git update of superproject %s failed, " |
4517 | "repo sync will not use superproject to fetch source; " | 4517 | "repo sync will not use superproject to fetch source; " |
4518 | "while this error is not fatal, and you can continue to " | 4518 | "while this error is not fatal, and you can continue to " |