From 23a0de6747ba1c63d42a0e5bd954ba299f0bb4a3 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 13 Jan 2019 18:35:18 +0000 Subject: dgit: cmd_import_dsc: comment on lack of is_orig_file check Signed-off-by: Ian Jackson --- dgit | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dgit b/dgit index b6bfd56..ce7fdae 100755 --- a/dgit +++ b/dgit @@ -7003,12 +7003,19 @@ END my @dfi = dsc_files_info(); foreach my $fi (@dfi) { my $f = $fi->{Filename}; + # We transfer all the pieces of the dsc to the bpd, not just + # origs. This is by analogy with dgit fetch, which wants to + # keep them somewhere to avoid downloading them again. + # We make symlinks, though. If the user wants copies, then + # they can copy the parts of the dsc to the bpd using dcmd, + # or something. my $here = "$buildproductsdir/$f"; if (lstat $here) { next if stat $here; fail f_ "lstat %s works but stat gives %s !", $here, $!; } fail f_ "stat %s: %s", $here, $! unless $! == ENOENT; + # $f does not exist in bpd, we need to transfer it my $there = $dscfn; if ($dscfn =~ m#^(?:\./+)?\.\./+#) { $there = $'; -- cgit v1.2.3