From 52f1e5d9111c586624de48b5f705e10b67d109b3 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 14 Nov 2012 04:53:24 +0900 Subject: Make load order of local manifests deterministic Local manifest files stored in the local_manifests folder are loaded in alphabetical order, so it's easier to know in which order project removals/additions/modifications will be applied. If local_manifests.xml exists, it will be loaded before the files in local_manifests. Change-Id: Ia5c0349608f1823b4662cd6b340b99915bd973d5 --- manifest_xml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manifest_xml.py') diff --git a/manifest_xml.py b/manifest_xml.py index a3e78fe9..31987248 100644 --- a/manifest_xml.py +++ b/manifest_xml.py @@ -312,7 +312,7 @@ class XmlManifest(object): local_dir = os.path.abspath(os.path.join(self.repodir, LOCAL_MANIFESTS_DIR_NAME)) try: - for local_file in os.listdir(local_dir): + for local_file in sorted(os.listdir(local_dir)): if local_file.endswith('.xml'): try: nodes.append(self._ParseManifestXml(local_file, self.repodir)) -- cgit v1.2.3-54-g00ecf