def output(self, fout): self._add_pkg_header() self._add_copyright() self._add_default_license() self._add_buildrules() # trailing enter self.lines.append("") Section.output(self, fout)
def output(self, fout, newline = True): self._add_pkg_header() self._add_copyright() self._add_default_license() self._add_buildrules() # trailing enters # prep_spec does two so do the same self.lines.append('') self.lines.append('') Section.output(self, fout, newline)
def output(self, fout): self._add_pkg_header() self._add_copyright() self._add_default_license() self._add_buildrules() # trailing enters # prep_spec does two so do the same self.lines.append('') self.lines.append('') Section.output(self, fout)
def output(self, fout): # if we have 2 or 3 lines where last one is empty nolines = len(self.lines) if nolines == 2 or (nolines == 3 and self.lines[2] == ''): if self.lines[1] == '/sbin/ldconfig': pkg = self.lines[0] self.lines = [] self.lines.append('{0} -p /sbin/ldconfig'.format(pkg)) self.lines.append('') Section.output(self, fout)
def output(self, fout): # if we have 2 or 3 lines where last one is empty nolines = len(self.lines) if nolines == 2 or ( nolines == 3 and self.lines[2] == ''): if self.lines[1] == '/sbin/ldconfig': pkg = self.lines[0] self.lines = [] self.lines.append('{0} -p /sbin/ldconfig'.format(pkg)) self.lines.append('') Section.output(self, fout)
def output(self, fout): lines = self._end_paragraph() self.lines += lines # append empty line to the end of the section self.lines.append('') Section.output(self, fout)
def output(self, fout): lines = self._end_paragraph() self.lines += lines # append empty line to the end of the section self.lines.append('') Section.output(self, fout)
def output(self, fout, newline=True): lines = self._end_paragraph() self.lines += lines Section.output(self, fout, newline)