]> git.ipfire.org Git - pakfire.git/commitdiff
progress: Don't return an error if there is nothing to update
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 24 Oct 2024 15:39:19 +0000 (15:39 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 24 Oct 2024 15:39:19 +0000 (15:39 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/progress.c

index df62beff836446632564c7a6abfd2c464942a181..6c3a00beb93bff90831fe62b2fd12fac68a1bdab 100644 (file)
@@ -248,7 +248,7 @@ int pakfire_progress_finish(struct pakfire_progress* p) {
 }
 
 int pakfire_progress_update(struct pakfire_progress* p, unsigned long int value) {
-       int r = -EINVAL;
+       int r = 0;
 
        // Report the change to the parent progress
        if (p->parent) {