From 6e34f048c7e200a56761e19fea7801dbfa4b0e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 10 Dec 2010 16:42:25 +0200 Subject: db: remove support for unsigned repository index Unsigned indexes should not be needed anymore anyway. --- src/cache.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/cache.c') 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; } -- cgit v1.2.3