X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=triggers%2Ffilter-nonfree;h=074b76730c41e83d648ac168a806dee8402f6f4f;hb=9fdf42548ad94e270a4054de152028f5bb9c20ba;hp=5402f50a3e0be38ddc9f7b544fa5fdccd39f3ff9;hpb=636fd44b6b3b8f343eb53c4ef2dd053fb91bd4d6;p=wannabuild.git diff --git a/triggers/filter-nonfree b/triggers/filter-nonfree old mode 100755 new mode 100644 index 5402f50..074b767 --- a/triggers/filter-nonfree +++ b/triggers/filter-nonfree @@ -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']]