chiark / gitweb /
dgit: cmd_import_dsc: comment on lack of is_orig_file check
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 13 Jan 2019 18:35:18 +0000 (18:35 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 13 Jan 2019 18:39:19 +0000 (18:39 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index b6bfd5605684ae5fbebb3343175ccc2bd5c2ac4f..ce7fdaef69457531129c58c6e7be5a2da25d3cc1 100755 (executable)
--- 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 = $';