1258
1258
if (SigFile == "")
1260
1260
// There was no signature file, so we are finished. Download
1261
// the indexes and do only hashsum verification
1261
// the indexes and do only hashsum verification if possible
1262
1262
MetaIndexParser->Load(DestFile);
1263
QueueIndexes(false);
1380
1380
HashString ExpectedIndexHash;
1383
const indexRecords::checkSum *Record = MetaIndexParser->Lookup((*Target)->MetaKey);
1386
if ((*Target)->IsOptional() == false)
1388
Status = StatAuthError;
1389
strprintf(ErrorText, _("Unable to find expected entry '%s' in Release file (Wrong sources.list entry or malformed file)"), (*Target)->MetaKey.c_str());
1395
ExpectedIndexHash = Record->Hash;
1396
if (_config->FindB("Debug::pkgAcquire::Auth", false))
1398
std::cerr << "Queueing: " << (*Target)->URI << std::endl;
1399
std::cerr << "Expected Hash: " << ExpectedIndexHash.toStr() << std::endl;
1400
std::cerr << "For: " << Record->MetaKeyFilename << std::endl;
1402
if (ExpectedIndexHash.empty() == true && (*Target)->IsOptional() == false)
1404
Status = StatAuthError;
1405
strprintf(ErrorText, _("Unable to find hash sum for '%s' in Release file"), (*Target)->MetaKey.c_str());
1381
const indexRecords::checkSum *Record = MetaIndexParser->Lookup((*Target)->MetaKey);
1384
if (verify == true && (*Target)->IsOptional() == false)
1386
Status = StatAuthError;
1387
strprintf(ErrorText, _("Unable to find expected entry '%s' in Release file (Wrong sources.list entry or malformed file)"), (*Target)->MetaKey.c_str());
1393
ExpectedIndexHash = Record->Hash;
1394
if (_config->FindB("Debug::pkgAcquire::Auth", false))
1396
std::cerr << "Queueing: " << (*Target)->URI << std::endl;
1397
std::cerr << "Expected Hash: " << ExpectedIndexHash.toStr() << std::endl;
1398
std::cerr << "For: " << Record->MetaKeyFilename << std::endl;
1400
if (verify == true && ExpectedIndexHash.empty() == true && (*Target)->IsOptional() == false)
1402
Status = StatAuthError;
1403
strprintf(ErrorText, _("Unable to find hash sum for '%s' in Release file"), (*Target)->MetaKey.c_str());