From: Michael Tremer Date: Thu, 1 Jun 2023 20:26:09 +0000 (+0000) Subject: repos: Fix re-reading repository key X-Git-Tag: 0.9.29~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc47e51752a8a9e76bd6b60c4eff10623cfa1e3d;p=pakfire.git repos: Fix re-reading repository key Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/repo.c b/src/libpakfire/repo.c index 1055ce180..ded2237fc 100644 --- a/src/libpakfire/repo.c +++ b/src/libpakfire/repo.c @@ -187,7 +187,7 @@ static int pakfire_repo_import_key(struct pakfire_repo* repo, const char* data) // If the key could be successfully imported, we will store it in the appdata repo->appdata->key = strdup(data); - if (repo->appdata->key) { + if (!repo->appdata->key) { ERROR(repo->pakfire, "Could not copy the key to appdata: %m\n"); r = 1; goto ERROR;