As reported in bug #3495, do not remove the old repository database file before validating the download outcome (UrlFetcher download result)