Skip to content

Commit 2a4a097

Browse files
committed
fixup! bin/xbps-rindex: implement multi repo staging
1 parent b5bff3f commit 2a4a097

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bin/xbps-rindex/index-add.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <errno.h>
3131
#include <fcntl.h>
3232
#include <libgen.h>
33+
#include <limits.h>
3334
#include <stdbool.h>
3435
#include <stdio.h>
3536
#include <stdlib.h>
@@ -525,20 +526,20 @@ commit(struct repo_state *states, unsigned nstates)
525526
for (unsigned i = 0; i < nstates; i++) {
526527
r = add_staged_shlib_providers(&shared, &states[i]);
527528
if (r < 0)
528-
return r;
529+
goto err;
529530
r = find_used_staged_shlibs(&shared, &states[i]);
530531
if (r < 0)
531-
return r;
532+
goto err;
532533
}
533534

534535
// throw out shared libraries that are already satisfied
535536
for (unsigned i = 0; i < nstates; i++) {
536537
r = purge_satisfied_by_index(&shared, &states[i]);
537538
if (r < 0)
538-
return r;
539+
goto err;
539540
r = purge_satisfied_by_stage(&shared, &states[i]);
540541
if (r < 0)
541-
return r;
542+
goto err;
542543
}
543544

544545
// ... now if there are libraries left, there is an inconsistency

0 commit comments

Comments
 (0)