X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fmake_suite_file_list.py;h=56810b29c7a8f8cdde950833e7d9b2aa441920d2;hb=164bd4615cb96a8b8d5bac8d67c0b5c57a7f64e2;hp=20fe186c5914376a08e30cd6181a2158f5b4d1f5;hpb=e2ae71066cbb134753d7bfceb16e87d0b76dfd6e;p=dak.git diff --git a/dak/make_suite_file_list.py b/dak/make_suite_file_list.py index 20fe186c..56810b29 100755 --- a/dak/make_suite_file_list.py +++ b/dak/make_suite_file_list.py @@ -33,7 +33,7 @@ ################################################################################ -import copy, os, pg, string, sys +import copy, os, pg, sys import apt_pkg import symlink_dists import daklib.database @@ -275,7 +275,7 @@ def write_filelists(packages, dislocated_files): suites = Cnf.SubTree("Suite").List() else: suites = daklib.utils.split_args(Options["Suite"]) - for suite in map(string.lower, suites): + for suite in [ i.lower() for i in suites ]: d.setdefault(suite, {}) if not Options["Component"]: components = Cnf.ValueList("Suite::%s::Components" % (suite)) @@ -293,7 +293,7 @@ def write_filelists(packages, dislocated_files): architectures = Cnf.ValueList("Suite::%s::Architectures" % (suite)) else: architectures = daklib.utils.split_args(Options["Architectures"]) - for arch in map(string.lower, architectures): + for arch in [ i.lower() for i in architectures ]: d[suite][component].setdefault(arch, {}) if arch == "source": types = [ "dsc" ]