]> git.ipfire.org Git - pakfire.git/commitdiff
filelist: Don't overwrite r when using a progress bar
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Dec 2024 17:02:47 +0000 (17:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Dec 2024 17:02:47 +0000 (17:02 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/filelist.c

index fd73ecba2bff2d97a1ef13336f3969b52663f830..577b7f4b2a6a62507193f4414a923c65a6c84d42 100644 (file)
@@ -483,7 +483,7 @@ int pakfire_filelist_walk(struct pakfire_filelist* list,
                // Call the callback
                r = callback(list->ctx, list->files[i], data);
                if (r)
-                       break;
+                       goto ERROR;
        }
 
        // Done!