]> git.donarmstrong.com Git - wannabuild.git/blobdiff - triggers/filter-nonfree
resurrect triggers/filter-nonfree from
[wannabuild.git] / triggers / filter-nonfree
old mode 100755 (executable)
new mode 100644 (file)
index 5402f50..074b767
@@ -10,7 +10,8 @@ def check_source(ok, f, fw):
     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']]