db: make missing index non-fatal
it's a warning not an error to have non-existant repository. bad signature means tampering; but we might want to just ignore those. this is especially important if we have http repositories and we are bootstrapping (without network).cute-signatures
parent
20b3c7c8b3
commit
fac43e2d60
|
@ -1282,7 +1282,7 @@ int apk_db_add_repository(apk_database_t _db, apk_blob_t repository)
|
|||
}
|
||||
if (bs == NULL) {
|
||||
apk_warning("Failed to open index for %s", repo->url);
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
r = load_index(db, bs, targz, r);
|
||||
|
|
Loading…
Reference in New Issue