Melt the butter over a medium heat in a heavy-based saucepan.
Add the bacon and let it cook gently for a minute or so, just to render a little fat.
Add the onion, carrot and garlic and cook for another two minutes, stirring so everything softens without taking on much colour.
Reduce the heat to low and sprinkle in the flour, stirring to coat the bacon and vegetables. Cook it gently for about three minutes, stirring from time to time, until it turns a pale, blond colour.
Stir in the tomato purée and cook for a further minute over low heat.
Raise the heat slightly and add the stock a little at a time, whisking as you go. Bring it to a light boil.
Add the tinned tomatoes, thyme, bay leaf, sugar, and a pinch of salt and pepper. Stir, then reduce to a bare simmer.
Part-cover the pan and leave it to cook gently for around 40 minutes, stirring occasionally.
Alternatively, cook the sauce in the oven at 160°C (320°F) for 30 minutes.
Once the sauce has reduced and thickened, pass it through a sieve or food mill into a clean bowl, pressing gently on the solids to extract the liquid.
Taste and adjust the seasoning. Reheat to a simmer in a saucepan.
