self.vars['my_pv'] = ebuild_vars['my_pv']
self.vars['src_uri'] = ebuild_vars['src_uri']
+ def _quote(self, string):
+ """Escape double quotes to ensure valid ebuild syntax.
+ """
+ return string.replace('"', '%22')
def add_metadata(self):
"""
homepages = ['Home-page', 'home_page', 'home-page']
for hpage in homepages:
if self.metadata.has_key(hpage):
- self.vars['homepage'] = self.metadata[hpage]
+ self.vars['homepage'] = self._quote(self.metadata[hpage])
#There doesn't seem to be any specification for case
if self.metadata.has_key('Summary'):