def debcontrol(self): """ Return the debian/control as a Deb822 (a Debian-specific dict-like class) object. For a string representation of debian/control try .get_content('control') """ return Deb822(self.get_content(CONTROL_FILE))
def processControl(): firstParagraph = True for paragraph in Deb822.iter_paragraphs(open('control')): if firstParagraph: processSourceParagraph(paragraph) printParagraph(paragraph) firstParagraph = False else: processPackageParagraph(paragraph) print printParagraph(paragraph)
def processControl(): firstParagraph = True for paragraph in Deb822.iter_paragraphs(open("control")): if firstParagraph: processSourceParagraph(paragraph) printParagraph(paragraph) firstParagraph = False else: processPackageParagraph(paragraph) print printParagraph(paragraph)
def __init__(self, *args, **kwargs): Deb822.__init__(self, *args, **kwargs)