X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_movefiles;fp=dh_movefiles;h=8762487ac6bd10a4480f10d83dedc87b89792964;hb=0d919d2978cd12f6a6af3bf00003c38c84fd0a56;hp=cc1af45eba1a2eb2f90a81b4144ed9326e50a84e;hpb=dfc48628ab06f010bb18454d5d8e8701b1bcf58a;p=debhelper.git diff --git a/dh_movefiles b/dh_movefiles index cc1af45..8762487 100755 --- a/dh_movefiles +++ b/dh_movefiles @@ -140,7 +140,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } my $pwd=`pwd`; chomp $pwd; - complex_doit("(cd $sourcedir >/dev/null ; tar --create --remove-files --files-from=$pwd/debian/movelist --file -) | (cd $tmp >/dev/null ;tar xpf -)"); + complex_doit("(cd $sourcedir >/dev/null ; tar --create --files-from=$pwd/debian/movelist --file -) | (cd $tmp >/dev/null ;tar xpf -)"); + # --remove-files is not used above because tar then doesn't + # preserve hard links + complex_doit("cd $sourcedir >/dev/null ; cat $pwd/debian/movelist | xargs rm -f)"); doit("rm","-f","debian/movelist"); } }