]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_movefiles
r583: * dh_movefiles: Do not pass --remove-files to tar, since that makes
[debhelper.git] / dh_movefiles
index cc1af45eba1a2eb2f90a81b4144ed9326e50a84e..8762487ac6bd10a4480f10d83dedc87b89792964 100755 (executable)
@@ -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");
        }
 }