From: Michael Tremer Date: Mon, 25 Sep 2023 14:39:03 +0000 (+0000) Subject: libpakfire: Fix loading repositories X-Git-Tag: 0.9.30~1651 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c653b157a1dba1d12d884197082416bfdc1443fc;p=pakfire.git libpakfire: Fix loading repositories Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/pakfire.c b/src/libpakfire/pakfire.c index fb3ca747a..f5788933c 100644 --- a/src/libpakfire/pakfire.c +++ b/src/libpakfire/pakfire.c @@ -542,7 +542,7 @@ static int pakfire_read_repo_config(struct pakfire* pakfire) { break; // Skip anything that isn't a regular file - if (entry->d_type & DT_REG) + if (entry->d_type != DT_REG) continue; // Skip any files that don't end on .repo @@ -553,7 +553,6 @@ static int pakfire_read_repo_config(struct pakfire* pakfire) { r = pakfire_read_one_repo_config(pakfire, dir, entry->d_name); if (r) goto ERROR; - } // Success