Merge "Pass full path of the XML in local_manifests to the parser"

This commit is contained in:
Conley Owens 2013-01-17 17:06:49 +00:00 committed by Gerrit Code Review
commit c59bafffb9

View File

@ -345,7 +345,8 @@ class XmlManifest(object):
for local_file in sorted(os.listdir(local_dir)): for local_file in sorted(os.listdir(local_dir)):
if local_file.endswith('.xml'): if local_file.endswith('.xml'):
try: try:
nodes.append(self._ParseManifestXml(local_file, self.repodir)) local = os.path.join(local_dir, local_file)
nodes.append(self._ParseManifestXml(local, self.repodir))
except ManifestParseError as e: except ManifestParseError as e:
print('%s' % str(e), file=sys.stderr) print('%s' % str(e), file=sys.stderr)
except OSError: except OSError: