From 7fcb545639bfe44f372015928a2defd2f4f5d16c Mon Sep 17 00:00:00 2001 From: josch Date: Thu, 27 Sep 2012 13:40:55 +0200 Subject: [PATCH] use default filenames in find_reduced.py --- find_reduced.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/find_reduced.py b/find_reduced.py index 1d3e245..6bfcb73 100755 --- a/find_reduced.py +++ b/find_reduced.py @@ -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()