diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-03-01 17:42:55 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-03-01 18:11:17 +0000 |
commit | 6c9a2bed0e895579ee058c186428e654f6324d09 (patch) | |
tree | d6357cfd131753c21339aad70a3fdb4707537cb6 | |
parent | 9a9985912134c16e172bfda950e2788f08003c62 (diff) |
dgit: New relative path handling: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | dgit | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -7018,6 +7018,7 @@ END fail f_ "lstat %s works but stat gives %s !", $here, $!; } fail f_ "stat %s: %s", $here, $! unless $! == ENOENT; + printdebug "not in bpd, $f ...\n"; # $f does not exist in bpd, we need to transfer it my $there = $dscfn; $there =~ s{[^/]+$}{$f} or confess "$there ?"; @@ -7032,12 +7033,15 @@ END # abs2rel, despite its name, can take two relative paths $there = File::Spec->abs2rel($there,$buildproductsdir); # now $there is relative to bpd, great + printdebug "not in bpd, $f, abs2rel, $there ...\n"; } else { $there = (dirname $maindir)."/$there_from_parent"; # now $there is absoute + printdebug "not in bpd, $f, rel2rel, $there ...\n"; } } elsif ($there =~ m#^/#) { # $there is absolute already + printdebug "not in bpd, $f, abs, $there ...\n"; } else { fail f_ "cannot import %s which seems to be inside working tree!", |