From: Michael Tremer Date: Tue, 20 Apr 2021 09:39:17 +0000 (+0000) Subject: repo: Do not fail when solv file could not be read initially X-Git-Tag: 0.9.28~1285^2~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c166e6cc860f1989c64f6d0e6e2bfccc53a70a9;p=pakfire.git repo: Do not fail when solv file could not be read initially Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/repo.c b/src/libpakfire/repo.c index 1ac629a39..7d5a2038a 100644 --- a/src/libpakfire/repo.c +++ b/src/libpakfire/repo.c @@ -257,12 +257,16 @@ static int pakfire_repo_read_metadata(PakfireRepo repo, const char* path, int re // Read database r = pakfire_repo_read_solv(repo, database_cache_path, 0); if (r) { + if (!refresh && errno == ENOENT) + goto NOERROR; + ERROR(repo->pakfire, "Could not read SOLV file %s: %s\n", database_cache_path, strerror(errno)); goto ERROR; } } +NOERROR: // Success r = 0;