uri.User.clear();
uri.Password.clear();
std::string descUri = std::string(uri);
- _error->Error(_("Failed to fetch %s %s\n"), descUri.c_str(),
+ _error->Error(_("Failed to fetch %s %s"), descUri.c_str(),
(*I)->ErrorText.c_str());
if (Failure != NULL)
bool const downOnly = _config->FindB("APT::Get::Download-Only", false);
bool const printOnly = _config->FindB("APT::Get::Print-URIs", false);
+ if (printOnly)
+ _config->CndSet("Acquire::Changelogs::AlwaysOnline", true);
aptAcquireWithTextStatus Fetcher;
for (APT::VersionList::const_iterator Ver = verset.begin();
}
pkgAcquire Fetcher;
- if (archivedir.empty() == false && FileExists(archivedir) == true)
+ if (archivedir.empty() == false && FileExists(archivedir) == true &&
+ Fetcher.GetLock(archivedir) == true)
{
- Fetcher.GetLock(archivedir);
Fetcher.Clean(archivedir);
Fetcher.Clean(archivedir + "partial/");
}
- if (listsdir.empty() == false && FileExists(listsdir) == true)
+ if (listsdir.empty() == false && FileExists(listsdir) == true &&
+ Fetcher.GetLock(listsdir) == true)
{
- Fetcher.GetLock(listsdir);
Fetcher.Clean(listsdir + "partial/");
}