|
@@ -2299,6 +2299,7 @@ bool DoSource(CommandLine &CmdL)
|
|
|
{
|
|
{
|
|
|
for (unsigned I = 0; I != J; I++)
|
|
for (unsigned I = 0; I != J; I++)
|
|
|
ioprintf(cout,_("Fetch source %s\n"),Dsc[I].Package.c_str());
|
|
ioprintf(cout,_("Fetch source %s\n"),Dsc[I].Package.c_str());
|
|
|
|
|
+ delete[] Dsc;
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -2309,6 +2310,7 @@ bool DoSource(CommandLine &CmdL)
|
|
|
for (; I != Fetcher.UriEnd(); I++)
|
|
for (; I != Fetcher.UriEnd(); I++)
|
|
|
cout << '\'' << I->URI << "' " << flNotDir(I->Owner->DestFile) << ' ' <<
|
|
cout << '\'' << I->URI << "' " << flNotDir(I->Owner->DestFile) << ' ' <<
|
|
|
I->Owner->FileSize << ' ' << I->Owner->HashSum() << endl;
|
|
I->Owner->FileSize << ' ' << I->Owner->HashSum() << endl;
|
|
|
|
|
+ delete[] Dsc;
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -2334,6 +2336,7 @@ bool DoSource(CommandLine &CmdL)
|
|
|
if (_config->FindB("APT::Get::Download-only",false) == true)
|
|
if (_config->FindB("APT::Get::Download-only",false) == true)
|
|
|
{
|
|
{
|
|
|
c1out << _("Download complete and in download only mode") << endl;
|
|
c1out << _("Download complete and in download only mode") << endl;
|
|
|
|
|
+ delete[] Dsc;
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -2395,7 +2398,8 @@ bool DoSource(CommandLine &CmdL)
|
|
|
|
|
|
|
|
_exit(0);
|
|
_exit(0);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ delete[] Dsc;
|
|
|
|
|
+
|
|
|
// Wait for the subprocess
|
|
// Wait for the subprocess
|
|
|
int Status = 0;
|
|
int Status = 0;
|
|
|
while (waitpid(Process,&Status,0) != Process)
|
|
while (waitpid(Process,&Status,0) != Process)
|