Commit a1a2598babe3196b7edd0d6d4601490e667b389d
1 parent
5ad396a4
Exists in
master
and in
1 other branch
Added scripts to generate package filters for desktop apps, programs (tag role::…
…program) and packages with a minimum number of installations reported by popcon. added also a new script to generate the filter of valid tags for app_recommender.
Showing
4 changed files
with
17 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,10 @@ | @@ -0,0 +1,10 @@ | ||
1 | +#!/usr/bin/env python | ||
2 | + | ||
3 | +if __name__ == '__main__': | ||
4 | + with open("/root/org/popcon.debian.org/popcon-mail/results") as results: | ||
5 | + for line in results.readlines(): | ||
6 | + if line.startswith("Package"): | ||
7 | + fields = line.split() | ||
8 | + inst = int(fields[2])+int(fields[3])+int(fields[4]) | ||
9 | + if inst > 20: | ||
10 | + print fields[1], inst |