diff options
Diffstat (limited to 'manifest_xml.py')
-rw-r--r-- | manifest_xml.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/manifest_xml.py b/manifest_xml.py index a7fe8ddf..3ac607ec 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
@@ -167,12 +167,13 @@ class XmlManifest(object): | |||
167 | def _ParseGroups(self, groups): | 167 | def _ParseGroups(self, groups): |
168 | return [x for x in re.split(r'[,\s]+', groups) if x] | 168 | return [x for x in re.split(r'[,\s]+', groups) if x] |
169 | 169 | ||
170 | def Save(self, fd, peg_rev=False, peg_rev_upstream=True): | 170 | def Save(self, fd, peg_rev=False, peg_rev_upstream=True, groups=None): |
171 | """Write the current manifest out to the given file descriptor. | 171 | """Write the current manifest out to the given file descriptor. |
172 | """ | 172 | """ |
173 | mp = self.manifestProject | 173 | mp = self.manifestProject |
174 | 174 | ||
175 | groups = mp.config.GetString('manifest.groups') | 175 | if groups is None: |
176 | groups = mp.config.GetString('manifest.groups') | ||
176 | if groups: | 177 | if groups: |
177 | groups = self._ParseGroups(groups) | 178 | groups = self._ParseGroups(groups) |
178 | 179 | ||