Parsing single debian/control file using python-debian
Hi,
I'm unsure whether this might be the proper mailing list to ask
questions like this - but I have no better idea.
I intend to parse some machine readable files in some team maintained
packages. When trying something like
ctrl = open('debian/control','r')
for ctrlstanza in deb822.Packages.iter_paragraphs(ctrl):
print ctrlstanza
I get the full text of debian/control (same if I try
deb822.Sources.iter_paragraphs instead) - so there is no chance to parse
the single paragraphs in the Sources and Binary packages section. I
might be stupid because I'd regard this as a basic use case for
python-debian but I did not found a way to approach this. Any hint how
to do this properly?
Kind regards and thanks for any hint
Andreas.
--
http://fam-tille.de
--
To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 20120419200126.GA14326@an3as.eu">http://lists.debian.org/[🔎] 20120419200126.GA14326@an3as.eu
Reply to: