diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-08-16 13:30:01 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-08-16 13:30:01 +0100 |
commit | 9acb31a971d4f653836bbcf07410f51d3f80dbdd (patch) | |
tree | e9ae76490fea1187410522c1a4974e3fda9f84ff /dgit | |
parent | ab500fe2332b6ad9af0baedd50440331c0b83492 (diff) |
If a .orig in .. is a symlink, hardlink the link target into our private unpack directory, rather than the link itself (since latter won't work if the symlink is relative).
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1382,7 +1382,7 @@ sub generate_commit_from_dsc () { my $f = $fi->{Filename}; die "$f ?" if $f =~ m#/|^\.|\.dsc$|\.tmp$#; - link "../../../$f", $f + link_ltarget "../../../$f", $f or $!==&ENOENT or die "$f $!"; @@ -2794,7 +2794,7 @@ END foreach my $f (<../../../../*>) { #/){ my $b=$f; $b =~ s{.*/}{}; next unless is_orig_file $b, srcfn $upstreamversion,''; - link $f, $b or die "$b $!"; + link_ltarget $f, $b or die "$b $!"; $dscaddfile->($b); } |