# Now we need to expand wildcards in @tomove.
# This is only necessary in pre-v3 land -- as of v3, the
# expension is automatically done by filearray().
- if (@tomove && ! Debian::Debhelper::Dh_Lib::compat(3)) {
+ if (@tomove && Debian::Debhelper::Dh_Lib::compat(2)) {
@filelist=();
foreach (@tomove) {
push @filelist, glob("$sourcedir/$_");
doit("rm","-f","debian/movelist");
foreach (@tomove) {
$file=$_;
- $ret=1 if (! -e $file && ! -l $file);
+ if (! -e $file && ! -l $file) {
+ $ret=1;
+ warning("$file not found");
+ }
$file=~s:^\Q$sourcedir\E/+::;
complex_doit("(cd $sourcedir >/dev/null ; find $file ! -type d -print || true) >> debian/movelist");
}