summaryrefslogtreecommitdiff
path: root/dh_movefiles
diff options
context:
space:
mode:
Diffstat (limited to 'dh_movefiles')
-rwxr-xr-xdh_movefiles5
1 files changed, 4 insertions, 1 deletions
diff --git a/dh_movefiles b/dh_movefiles
index cc1af45e..8762487a 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");
}
}