From: Michael Tremer Date: Thu, 24 Oct 2024 15:39:19 +0000 (+0000) Subject: progress: Don't return an error if there is nothing to update X-Git-Tag: 0.9.30~912 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1327928ab7b1a01f5d4bb07d46dc3a8bc09640be;p=pakfire.git progress: Don't return an error if there is nothing to update Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/progress.c b/src/libpakfire/progress.c index df62beff8..6c3a00beb 100644 --- a/src/libpakfire/progress.c +++ b/src/libpakfire/progress.c @@ -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) {