utils.fubar("Archive '%s' for location '%s' not found."
% (location_config["Archive"], location))
location_type = location_config.get("type")
- if location_type == "legacy-mixed":
- projectB.query("INSERT INTO location (path, archive, type) VALUES "
- "('%s', %d, '%s')"
- % (location, archive_id, location_config["type"]))
- elif location_type == "legacy" or location_type == "pool":
+ if location_type == "pool":
for component in Cnf.SubTree("Component").List():
component_id = database.get_component_id(component)
projectB.query("INSERT INTO location (path, component, "
projectB.query("INSERT INTO suite (suite_name, version, origin, "
"description) VALUES ('%s', %s, %s, %s)"
% (suite.lower(), version, origin, description))
- for architecture in Cnf.ValueList("Suite::%s::Architectures" % (suite)):
+ for architecture in database.get_suite_architectures(suite):
architecture_id = database.get_architecture_id (architecture)
if architecture_id < 0:
utils.fubar("architecture '%s' not found in architecture"