From 4426eaf22824463173d726d626d8e45065d8dcce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Hajdan=2C=20Jr?= Date: Tue, 13 Jun 2017 12:25:47 +0200 Subject: [PATCH] gclient flatten: fix an issue with custom_deps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TBR=dpranke Bug: 570091 Change-Id: I1b8cc8156c83c72b2fc599d90059bc7f2674ca17 Reviewed-on: https://chromium-review.googlesource.com/532995 Reviewed-by: Paweł Hajdan Jr. Commit-Queue: Paweł Hajdan Jr. --- gclient.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gclient.py b/gclient.py index 4317e0232..8039af66c 100755 --- a/gclient.py +++ b/gclient.py @@ -561,6 +561,9 @@ class Dependency(gclient_utils.WorkItem, DependencySettings): def _postprocess_deps(self, deps, rel_prefix): """Performs post-processing of deps compared to what's in the DEPS file.""" + # Make sure the dict is mutable, e.g. in case it's frozen. + deps = dict(deps) + # If a line is in custom_deps, but not in the solution, we want to append # this line to the solution. for d in self.custom_deps: