From f9d0a639f21f1e1a7f44f49b544c224305737dd8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 19 Dec 2010 17:46:32 +0100 Subject: [PATCH] xbps_repository_pool_init: don't loop forever if repo pkg-index.plist files cannot be internalized. --- lib/repository_pool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/repository_pool.c b/lib/repository_pool.c index 0b396499..91dec27b 100644 --- a/lib/repository_pool.c +++ b/lib/repository_pool.c @@ -137,12 +137,11 @@ xbps_repository_pool_init(void) free(rpool->rpi); free(rpool); free(plist); + rv = errno; if (errno == ENOENT) { - errno = 0; nmissing++; continue; } - rv = errno; xbps_dbg_printf("%s: cannot internalize plist %s: %s\n", __func__, plist, strerror(errno)); goto out;