def to_sxml(self): return [ sxml.branch( module=self.module, repo=self.repository.name, version=self.version, size=str(self.source_size), hash=self.source_hash, ) ] + [[sxml.patch(file=patch, strip=str(strip))] for patch, strip in self.patches]
def to_sxml(self): return ([sxml.branch(module=self.module, repo=self.repository, version=self.version)])