diff options
Diffstat (limited to 'manifest_xml.py')
-rw-r--r-- | manifest_xml.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/manifest_xml.py b/manifest_xml.py index 0664eff9..030da180 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
@@ -146,9 +146,8 @@ class XmlManifest(object): | |||
146 | mp = self.manifestProject | 146 | mp = self.manifestProject |
147 | 147 | ||
148 | groups = mp.config.GetString('manifest.groups') | 148 | groups = mp.config.GetString('manifest.groups') |
149 | if not groups: | 149 | if groups: |
150 | groups = 'all' | 150 | groups = [x for x in re.split(r'[,\s]+', groups) if x] |
151 | groups = [x for x in re.split(r'[,\s]+', groups) if x] | ||
152 | 151 | ||
153 | doc = xml.dom.minidom.Document() | 152 | doc = xml.dom.minidom.Document() |
154 | root = doc.createElement('manifest') | 153 | root = doc.createElement('manifest') |
@@ -346,13 +345,20 @@ class XmlManifest(object): | |||
346 | for local_file in sorted(os.listdir(local_dir)): | 345 | for local_file in sorted(os.listdir(local_dir)): |
347 | if local_file.endswith('.xml'): | 346 | if local_file.endswith('.xml'): |
348 | try: | 347 | try: |
349 | nodes.append(self._ParseManifestXml(local_file, self.repodir)) | 348 | local = os.path.join(local_dir, local_file) |
349 | nodes.append(self._ParseManifestXml(local, self.repodir)) | ||
350 | except ManifestParseError as e: | 350 | except ManifestParseError as e: |
351 | print('%s' % str(e), file=sys.stderr) | 351 | print('%s' % str(e), file=sys.stderr) |
352 | except OSError: | 352 | except OSError: |
353 | pass | 353 | pass |
354 | 354 | ||
355 | self._ParseManifest(nodes) | 355 | try: |
356 | self._ParseManifest(nodes) | ||
357 | except ManifestParseError as e: | ||
358 | # There was a problem parsing, unload ourselves in case they catch | ||
359 | # this error and try again later, we will show the correct error | ||
360 | self._Unload() | ||
361 | raise e | ||
356 | 362 | ||
357 | if self.IsMirror: | 363 | if self.IsMirror: |
358 | self._AddMetaProjectMirror(self.repoProject) | 364 | self._AddMetaProjectMirror(self.repoProject) |