move the previous fix for sourcedir

git-svn-id: http://emdebian.org/svn/current@7269 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
codehelp 2010-06-01 08:48:03 +00:00
parent 50b6d29ab0
commit e92613ef72

View file

@ -656,7 +656,6 @@ sub tidy_apt
my $str = join (" ", @dsclist); my $str = join (" ", @dsclist);
print "(cd $sourcedir; apt-get -d $config_str source $str)"; print "(cd $sourcedir; apt-get -d $config_str source $str)";
system ("(cd $sourcedir; apt-get -d $config_str source $str)"); system ("(cd $sourcedir; apt-get -d $config_str source $str)");
$sourcedir=undef;
} }
unlink ("${dir}etc/apt/sources.list") unlink ("${dir}etc/apt/sources.list")
if (-f "${dir}etc/apt/sources.list"); if (-f "${dir}etc/apt/sources.list");
@ -694,6 +693,7 @@ sub tidy_apt
} else { } else {
unlink ("${dir}${cachedir}archives/$file"); unlink ("${dir}${cachedir}archives/$file");
} }
$sourcedir=undef;
} }
} }
} }