]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: Fix loading repositories
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Sep 2023 14:39:03 +0000 (14:39 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Sep 2023 14:39:03 +0000 (14:39 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/pakfire.c

index fb3ca747ac2a700bc9fdc6ba4af55b83a338e9ee..f5788933cbbcfc92fdd301c5d62893cea5733e4b 100644 (file)
@@ -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