summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2014-01-29 13:53:43 -0800
committerConley Owens <cco3@android.com>2014-01-29 13:57:22 -0800
commitf2fe2d9b865f0122589d329d356644a80233c770 (patch)
tree5c111489118204fbef44bf065b854e84ded390dc
parentc9877c7cf677bc3db18e9003271dfd72383aa9f7 (diff)
downloadgit-repo-f2fe2d9b865f0122589d329d356644a80233c770.tar.gz
Properly iterate through valuesv1.12.9
the value of Manifest.projects has changed from being the dictionary to the values of the dictionary. Here we handle this change correctly on a PostRepoUpgrade. From a `git diff v1.12.7 -- manifest_xml.py`: + @property def projects(self): self._Load() - return self._projects + return self._paths.values() self._paths does contain the projects according to this line of manifest_xml.py: 484 self._paths[project.relpath] = project Change-Id: I141f8d5468ee10dfb08f99ba434004a307fed810
-rw-r--r--subcmds/sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index 5e7385db..e138be05 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -702,7 +702,7 @@ def _PostRepoUpgrade(manifest, quiet=False):
702 wrapper = WrapperModule() 702 wrapper = WrapperModule()
703 if wrapper.NeedSetupGnuPG(): 703 if wrapper.NeedSetupGnuPG():
704 wrapper.SetupGnuPG(quiet) 704 wrapper.SetupGnuPG(quiet)
705 for project in manifest.projects.values(): 705 for project in manifest.projects:
706 if project.Exists: 706 if project.Exists:
707 project.PostRepoUpgrade() 707 project.PostRepoUpgrade()
708 708