Explorar o código

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

Conley Owens %!s(int64=13) %!d(string=hai) anos
pai
achega
c59bafffb9
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      manifest_xml.py

+ 2 - 1
manifest_xml.py

@@ -345,7 +345,8 @@ class XmlManifest(object):
         for local_file in sorted(os.listdir(local_dir)):
           if local_file.endswith('.xml'):
             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:
               print('%s' % str(e), file=sys.stderr)
       except OSError: