summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
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;
}