X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_movefiles;fp=dh_movefiles;h=7c3e70c612556a77274a559abd4c76f10fa7f460;hb=ce9117f859609ed67b1deef658ed6cef6c6590ae;hp=2c8a63fd934bbc32f601839caeb331700f765b41;hpb=71261a28861f546ca51a183ea5e55a0db9777416;p=debhelper.git diff --git a/dh_movefiles b/dh_movefiles index 2c8a63f..7c3e70c 100755 --- a/dh_movefiles +++ b/dh_movefiles @@ -143,7 +143,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { 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)"); + complex_doit("(cd $sourcedir >/dev/null ; tr '\\n' '\\0' < $pwd/debian/movelist | xargs -0 -i rm -f '{}')"); doit("rm","-f","debian/movelist"); } }