diff options
Diffstat (limited to 'main/apk-tools/0006-db-make-missing-index-non-fatal.patch')
-rw-r--r-- | main/apk-tools/0006-db-make-missing-index-non-fatal.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/main/apk-tools/0006-db-make-missing-index-non-fatal.patch b/main/apk-tools/0006-db-make-missing-index-non-fatal.patch new file mode 100644 index 0000000000..cfc5dd5714 --- /dev/null +++ b/main/apk-tools/0006-db-make-missing-index-non-fatal.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From fac43e2d60b550425481052e521d141730a303de Mon Sep 17 00:00:00 2001 | ||
2 | From: Timo Teras <timo.teras@iki.fi> | ||
3 | Date: Thu, 6 Aug 2009 13:12:26 +0300 | ||
4 | Subject: [PATCH 6/7] db: make missing index non-fatal | ||
5 | |||
6 | it's a warning not an error to have non-existant repository. | ||
7 | bad signature means tampering; but we might want to just ignore | ||
8 | those. this is especially important if we have http repositories | ||
9 | and we are bootstrapping (without network). | ||
10 | --- | ||
11 | src/database.c | 2 +- | ||
12 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
13 | |||
14 | diff --git a/src/database.c b/src/database.c | ||
15 | index 834383b..f7c3ac0 100644 | ||
16 | --- a/src/database.c | ||
17 | +++ b/src/database.c | ||
18 | @@ -1282,7 +1282,7 @@ int apk_db_add_repository(apk_database_t _db, apk_blob_t repository) | ||
19 | } | ||
20 | if (bs == NULL) { | ||
21 | apk_warning("Failed to open index for %s", repo->url); | ||
22 | - return -1; | ||
23 | + return 0; | ||
24 | } | ||
25 | |||
26 | r = load_index(db, bs, targz, r); | ||
27 | -- | ||
28 | 1.6.4 | ||
29 | |||