From f233a3d733538a94a042b9f3c3dc0339c8473ab8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 10 Jan 2017 14:22:55 +0000 Subject: dgit: dsc download handling: save as ,fetch if need be * Pass \$refetched to complete_file_from_dsc, so that we refetch files whose hashes are wrong. * When saving files we refetched, save them as F,fetch if saving them as F gives EEXIST. So we can save refetched files. * When looking for files to reuse, look for F,fetch first. We do this only here in generate_commits_from_dsc, not in ensure_we_have_orig. This is because, in practice, this all won't be very effective for origs which need to be referred to by various .dscs. The main use case is when the user did a build without changing the version number. This would otherwise break fetch: Closes:#850824. Signed-off-by: Ian Jackson --- debian/changelog | 3 +++ 1 file changed, 3 insertions(+) (limited to 'debian/changelog') diff --git a/debian/changelog b/debian/changelog index 52e54ce..607b2cd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,9 @@ dgit (3.1~) unstable; urgency=medium * dgit: Do not nedlessly re-fetch the rewrite map. * dgit: After downloading .debian.* files, save them in `..', too (ie do this not just for .origs). + * dgit: When fetching, refetch files with hash mismatches (and save them + as `...,fetch'), so we can distinguish them from any built locally. + Closes:#850824. Test suite: * Add test for import-dsc with default distro. (Detects #850781.) -- cgit v1.2.3