Package Kit: Purposely ignore an error getting package cache
Fixes #15230. The comment pretty much explains it. I think needing this means this code could be redesigned, but I don't know enough yet to make that fix. It also feels like this whole job system and Command pattern is overly complicated when good old functions would be fine, certainly for pkgman. But maybe this is used more heavily in HaikuDepot.
This commit is contained in:
parent
6a23120503
commit
f5953f6155
@ -74,11 +74,11 @@ BRefreshRepositoryRequest::CreateInitialJobs()
|
||||
|
||||
BRepositoryCache repoCache;
|
||||
BPackageRoster roster;
|
||||
result = roster.GetRepositoryCache(fRepoConfig.Name(), &repoCache);
|
||||
if (result != B_OK) {
|
||||
delete fetchChecksumJob;
|
||||
return result;
|
||||
}
|
||||
// We purposely don't check this error, because this may be for a new repo,
|
||||
// which doesn't have a cache file yet. The true passed to
|
||||
// GeneralFileChecksumAccessor below will handle this case, and cause the
|
||||
// repo data to be fetched and cached for the future in JobSucceeded below.
|
||||
roster.GetRepositoryCache(fRepoConfig.Name(), &repoCache);
|
||||
|
||||
ValidateChecksumJob* validateChecksumJob
|
||||
= new (std::nothrow) ValidateChecksumJob(fContext,
|
||||
|
Loading…
Reference in New Issue
Block a user