diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-08-06 13:12:26 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-08-06 13:12:26 +0300 |
commit | fac43e2d60b550425481052e521d141730a303de (patch) | |
tree | b9cd9d8006c2489abb8036eb2473fbfbab5a105f /src | |
parent | 20b3c7c8b3653940f357729e9f7159e2f32c1021 (diff) | |
download | apk-tools-fac43e2d60b550425481052e521d141730a303de.tar.gz apk-tools-fac43e2d60b550425481052e521d141730a303de.tar.bz2 apk-tools-fac43e2d60b550425481052e521d141730a303de.tar.xz apk-tools-fac43e2d60b550425481052e521d141730a303de.zip |
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).
Diffstat (limited to 'src')
-rw-r--r-- | src/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c index 834383b..f7c3ac0 100644 --- a/src/database.c +++ b/src/database.c @@ -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); |