3
# grep the names of all Debian native packages out of Sources files
4
# Copyright (C) 2007 Stefano Zacchiroli <zack@debian.org>
6
# This program is free software: you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation, either version 3 of the License, or
9
# (at your option) any later version.
13
from debian_bundle import deb822
15
for fname in sys.argv[1:]:
17
for stanza in deb822.Sources.iter_paragraphs(f):
18
pieces = stanza['version'].split('-')
20
print stanza['package']