projectB.query("INSERT INTO location (path, component, "
"archive, type) VALUES ('%s', %d, %d, '%s')"
% (location, component_id, archive_id,
location_type))
else:
projectB.query("INSERT INTO location (path, component, "
"archive, type) VALUES ('%s', %d, %d, '%s')"
% (location, component_id, archive_id,
location_type))
else: