use default filenames in find_reduced.py
This commit is contained in:
parent
e55ea0e7cc
commit
7fcb545639
1 changed files with 4 additions and 8 deletions
|
@ -8,26 +8,22 @@ sys.path.insert(0, pym_path)
|
|||
|
||||
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()
|
||||
gen2deb = dict()
|
||||
with open(sys.argv[1]) as f:
|
||||
with open("./deb2gen_mapping.list") as f:
|
||||
for line in f:
|
||||
d, g = line.strip().split('\t')
|
||||
deb2gen[d] = g
|
||||
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]
|
||||
|
||||
gentoo_deps = dict()
|
||||
with open(sys.argv[3]) as f:
|
||||
with open("./reduced_gen_deps.list") as f:
|
||||
for line in f:
|
||||
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_gen_mappings = list()
|
||||
|
|
Loading…
Reference in a new issue