only get the sources once, even if tidy_apt is called twice.

git-svn-id: http://emdebian.org/svn/current@7265 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
codehelp 2010-06-01 08:14:42 +00:00
parent 3be748d310
commit 092f2df1aa

View file

@ -654,9 +654,9 @@ sub tidy_apt
print _g("I: Tidying up apt cache and list data.\n");
if (defined $sourcedir) {
my $str = join (" ", @dsclist);
print "$str\n";
print "(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")
if (-f "${dir}etc/apt/sources.list");