summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-12-10 16:42:25 +0200
committerTimo Teräs <timo.teras@iki.fi>2010-12-10 16:42:25 +0200
commit6e34f048c7e200a56761e19fea7801dbfa4b0e27 (patch)
treef72811c837ae2b791b8833def05c241b32c49083 /src/cache.c
parent1f985b9d0f879c607cc97d23369ddd57453cdaae (diff)
downloadapk-tools-6e34f048c7e200a56761e19fea7801dbfa4b0e27.tar.gz
apk-tools-6e34f048c7e200a56761e19fea7801dbfa4b0e27.tar.bz2
apk-tools-6e34f048c7e200a56761e19fea7801dbfa4b0e27.tar.xz
apk-tools-6e34f048c7e200a56761e19fea7801dbfa4b0e27.zip
db: remove support for unsigned repository index
Unsigned indexes should not be needed anymore anyway.
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/cache.c b/src/cache.c
index 5311815..60c7aeb 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -97,12 +97,9 @@ static int cache_clean(struct apk_database *db)
if (apk_pkg_parse_name(b, &bname, &bver) < 0) {
/* Index - check for matching repository */
for (i = 0; i < db->num_repos; i++) {
- apk_cache_format_index(APK_BLOB_BUF(tmp), &db->repos[i], 0);
- if (apk_blob_compare(b, APK_BLOB_STR(tmp)) != 0) {
- apk_cache_format_index(APK_BLOB_BUF(tmp), &db->repos[i], 1);
- if (apk_blob_compare(b, APK_BLOB_STR(tmp)) != 0)
- continue;
- }
+ apk_cache_format_index(APK_BLOB_BUF(tmp), &db->repos[i]);
+ if (apk_blob_compare(b, APK_BLOB_STR(tmp)) != 0)
+ continue;
delete = 0;
break;
}