From 5566ae5ddea409279b13e538b513a73062862c3e Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Tue, 13 Nov 2012 03:04:18 +0900 Subject: Print deprecation warning when local_manifest.xml is used The preferred way to specify local manifests is to drop the file(s) in the local_manifests folder. Print a deprecation warning when the legacy local_manifest.xml file is used. Change-Id: Ice85bd06fb612d6fcceeaa0755efd130556c4464 --- manifest_xml.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'manifest_xml.py') diff --git a/manifest_xml.py b/manifest_xml.py index 4e476791..d16f1a98 100644 --- a/manifest_xml.py +++ b/manifest_xml.py @@ -300,6 +300,8 @@ class XmlManifest(object): local = os.path.join(self.repodir, LOCAL_MANIFEST_NAME) if os.path.exists(local): + print >>sys.stderr, 'warning: %s is deprecated; put local manifests in %s instead' % \ + (LOCAL_MANIFEST_NAME, LOCAL_MANIFESTS_DIR_NAME) nodes.append(self._ParseManifestXml(local, self.repodir)) local_dir = os.path.abspath(os.path.join(self.repodir, LOCAL_MANIFESTS_DIR_NAME)) -- cgit v1.2.3-54-g00ecf