X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_movefiles;fp=dh_movefiles;h=acd3b20d596c742d4852b7bd75887ebe46c36425;hb=add24ceeca66be270dbfe3e7c6884d6a6f1aa1c9;hp=7c3e70c612556a77274a559abd4c76f10fa7f460;hpb=45bde2ca3f71bc2ff15e31e42df826707cb9c88a;p=debhelper.git diff --git a/dh_movefiles b/dh_movefiles index 7c3e70c..acd3b20 100755 --- a/dh_movefiles +++ b/dh_movefiles @@ -130,13 +130,15 @@ foreach my $package (@{$dh{DOPACKAGES}}) { $ret=1; warning("$file not found (supposed to put it in $package)"); } - $file=~s:^\Q$sourcedir\E/+::; - my $cmd="(cd $sourcedir >/dev/null ; find $file ! -type d "; - if ($dh{EXCLUDE_FIND}) { - $cmd.="-a ! \\( $dh{EXCLUDE_FIND} \\) "; + else { + $file=~s:^\Q$sourcedir\E/+::; + my $cmd="(cd $sourcedir >/dev/null ; find $file ! -type d "; + if ($dh{EXCLUDE_FIND}) { + $cmd.="-a ! \\( $dh{EXCLUDE_FIND} \\) "; + } + $cmd.="-print || true) >> debian/movelist"; + complex_doit($cmd); } - $cmd.="-print || true) >> debian/movelist"; - complex_doit($cmd); } my $pwd=`pwd`; chomp $pwd;