- d[suite][component]["all"].has_key(type):
- list.extend(d[suite][component]["all"][type]);
- write_filelist(suite, component, arch, type, list,
- packages, dislocated_files);
- else: # legacy-mixed suite
- list = [];
- for component in d[suite].keys():
- for arch in d[suite][component].keys():
- for type in d[suite][component][arch].keys():
- list.extend(d[suite][component][arch][type]);
- write_legacy_mixed_filelist(suite, list, packages, dislocated_files);
-
-################################################################################
-
-# Want to use stable dislocation support: True or false?
-def stable_dislocation_p():
- # If the support is not explicitly enabled, assume it's disabled
- if not Cnf.FindB("Dinstall::StableDislocationSupport"):
- return 0;
- # If we don't have a stable suite, obviously a no-op
- if not Cnf.has_key("Suite::Stable"):
- return 0;
- # If the suite(s) weren't explicitly listed, all suites are done
- if not Options["Suite"]:
- return 1;
- # Otherwise, look in what suites the user specified
- suites = utils.split_args(Options["Suite"]);
-
- if "stable" in suites:
- return 1;
- else:
- return 0;
+ d[suite][component]["all"].has_key(packagetype):
+ filelist.extend(d[suite][component]["all"][packagetype])
+ write_filelist(suite, component, arch, packagetype, filelist,
+ packages, dislocated_files)
+ else: # something broken
+ utils.warn("Suite %s has no components." % (suite))