use default filenames in find_reduced.py

This commit is contained in:
josch 2012-09-27 13:40:55 +02:00
parent e55ea0e7cc
commit 7fcb545639

View file

@ -8,26 +8,22 @@ sys.path.insert(0, pym_path)
from portage.versions import pkgsplit from portage.versions import pkgsplit
if len(sys.argv) != 4:
print "usage: %s pkg_mapping debian_names gentoo_deps"%sys.argv[0]
exit(1)
deb2gen = dict() deb2gen = dict()
gen2deb = dict() gen2deb = dict()
with open(sys.argv[1]) as f: with open("./deb2gen_mapping.list") as f:
for line in f: for line in f:
d, g = line.strip().split('\t') d, g = line.strip().split('\t')
deb2gen[d] = g deb2gen[d] = g
gen2deb[g] = d gen2deb[g] = d
with open(sys.argv[2]) as f: with open("./deb_source_pkgs.list") as f:
debian_names = [p[4:].strip() for p in f] debian_names = [p[4:].strip() for p in f]
gentoo_deps = dict() gentoo_deps = dict()
with open(sys.argv[3]) as f: with open("./reduced_gen_deps.list") as f:
for line in f: for line in f:
p = line.strip().split() p = line.strip().split()
gentoo_deps[pkgsplit(p[1])[0]] = p[2:] gentoo_deps[pkgsplit(p[0])[0]] = p[1:]
missing_deb_mappings = list() missing_deb_mappings = list()
missing_gen_mappings = list() missing_gen_mappings = list()