- override_type = ".debian-installer";
- elif type == "dsc":
- override_type = ".src";
- filename = "%s/override.%s.%s%s" % (Cnf["Dir::Override"], override_suite, component.replace("non-US/", ""), override_type);
- file = utils.open_file(filename, 'w');
- list(file, suite, component, type);
- file.close();
+ suffix = ".debian-installer";
+ elif otype == "dsc":
+ suffix = ".src";
+ filename = "%s/override.%s.%s%s" % (Cnf["Dir::Override"], override_suite, component.replace("non-US/", ""), suffix);
+ output_file = utils.open_file(filename, 'w');
+ do_list(output_file, suite, component, otype);
+ output_file.close();