diff --git a/gclient.py b/gclient.py index 6ec2f183f..3ae9ffecf 100644 --- a/gclient.py +++ b/gclient.py @@ -362,7 +362,8 @@ class Dependency(GClientKeywords): self.file_list[i] = self.file_list[i][len(prefix):] # Strip any leading path separators. - while file_list[i].startswith('\\') or file_list[i].startswith('/'): + while (self.file_list[i].startswith('\\') or + self.file_list[i].startswith('/')): self.file_list[i] = self.file_list[i][1:] # Run hooks on the basis of whether the files from the gclient operation