Commit e4e15044 authored by Edward Lemur's avatar Edward Lemur Committed by Commit Bot

gclient: Don't include CIPD package name in hierarchy.

It causes flakiness, since the package that is responsible for
printing the dependency is not always the same.

Bug: None
Change-Id: I887d740d6a903cb0d5e6c080b76feab78a54effd
Reviewed-on: https://chromium-review.googlesource.com/1116191Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
parent b3853afe
...@@ -1853,6 +1853,9 @@ class CipdDependency(Dependency): ...@@ -1853,6 +1853,9 @@ class CipdDependency(Dependency):
self.url, self.root.root_dir, self.name, self.outbuf, out_cb, self.url, self.root.root_dir, self.name, self.outbuf, out_cb,
root=self._cipd_root, package=self._cipd_package) root=self._cipd_root, package=self._cipd_package)
def hierarchy(self, include_url=False):
return self.parent.hierarchy(include_url) + ' -> ' + self._cipd_subdir
def ToLines(self): def ToLines(self):
"""Return a list of lines representing this in a DEPS file.""" """Return a list of lines representing this in a DEPS file."""
s = [] s = []
......
...@@ -1397,7 +1397,7 @@ class GClientSmokeGIT(GClientSmokeBase): ...@@ -1397,7 +1397,7 @@ class GClientSmokeGIT(GClientSmokeBase):
' "url": "' + self.git_base + 'repo_14",', ' "url": "' + self.git_base + 'repo_14",',
' },', ' },',
'', '',
' # src -> src/another_cipd_dep:package1', ' # src -> src/another_cipd_dep',
' "src/another_cipd_dep": {', ' "src/another_cipd_dep": {',
' "packages": [', ' "packages": [',
' {', ' {',
...@@ -1412,7 +1412,7 @@ class GClientSmokeGIT(GClientSmokeBase): ...@@ -1412,7 +1412,7 @@ class GClientSmokeGIT(GClientSmokeBase):
' "dep_type": "cipd",', ' "dep_type": "cipd",',
' },', ' },',
'', '',
' # src -> src/cipd_dep:package0', ' # src -> src/cipd_dep',
' "src/cipd_dep": {', ' "src/cipd_dep": {',
' "packages": [', ' "packages": [',
' {', ' {',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment