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
main
codehelp 14 years ago
parent 3be748d310
commit 092f2df1aa

@ -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");

Loading…
Cancel
Save