diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-12-15 00:06:19 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-12-19 16:58:57 +0000 |
commit | 801b029f697680642110406338ccae7a0179e6de (patch) | |
tree | e9442e21371310102d2eeab4392c91d987ea9b69 /Debian | |
parent | 761257ea4fc5cad5eac4a06e09d5ebabaab2296f (diff) |
If we cannot hardlink origs into our extraction area, use symlinks instead.
Closes:#844570.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'Debian')
-rw-r--r-- | Debian/Dgit.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index 1bac97b..50e3b86 100644 --- a/Debian/Dgit.pm +++ b/Debian/Dgit.pm @@ -289,7 +289,9 @@ sub link_ltarget ($$) { if (-l _) { $old = cmdoutput qw(realpath --), $old; } - link $old, $new or die "link $old $new: $!"; + my $r = link $old, $new; + $r = symlink $old, $new if !$r && $!==EXDEV; + $r or die "(sym)link $old $new: $!"; } sub hashfile ($) { |