Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
filter_callback = NULL;
break;
+ case PAKFIRE_WALK_AGAIN:
+ DEBUG(pakfire, "Filter callback sent AGAIN\n");
+ return -EAGAIN;
+
// Raise any other errors
default:
DEBUG(pakfire, "Filter callback returned an error: %d\n", r);
// Like PAKFIRE_WALK_OK, but the callback will not be called again
PAKFIRE_WALK_DONE = -30,
+
+ // Start again from the beginning
+ PAKFIRE_WALK_AGAIN = -40,
};
int pakfire_walk(struct pakfire* pakfire, struct archive* archive,