ret=[]
pkg = apt_pkg.ParseTagFile(f)
while pkg.Step():
- if pkg.Section['Section'].startswith('non-free'):
+ if not pkg.Section.get('Package'): continue
+ if pkg.Section.get('Section','').startswith('non-free'):
if pkg.Section.get('Autobuild') != 'yes': continue
if pkg.Section['Package'] not in ok: continue
ret += [pkg.Section['Package']]