- if override["unstable"][component][type].has_key(package):
- file.write(utils.result_join(override["unstable"][component][type][package])+'\n');
- elif override["stable"][component][type].has_key(package):
- file.write(utils.result_join(override["stable"][component][type][package])+'\n');
- else:
- if type == "dsc" and (override["unstable"][component]["deb"].has_key(package) or override["stable"][component]["deb"].has_key(package)):
- continue; # source falls back on binary; so accept silently
- utils.warn("Can't find override entry for testing package '%s' (component %s, type %s)." % (package, component, type));
+ if type == "deb" or type == "dsc":
+ if override["unstable"][component][type].has_key(package):
+ file.write(utils.result_join(override["unstable"][component][type][package])+'\n');
+ elif override["stable"][component][type].has_key(package):
+ file.write(utils.result_join(override["stable"][component][type][package])+'\n');
+ else:
+ if type == "dsc" and (override["unstable"][component]["deb"].has_key(package) or override["stable"][component]["deb"].has_key(package)):
+ continue; # source falls back on binary; so accept silently
+ utils.warn("Can't find override entry for testing package '%s' (component %s, type %s)." % (package, component, type));
+ elif type == "udeb":
+ if component == "main" and override["unstable"][component][type].has_key(package):
+ file.write(utils.result_join(override["unstable"][component][type][package])+'\n');
+ else:
+ utils.warn("Can't find override entry for testing package '%s' (component %s, type %s)." % (package, component, type));
+