Skip to content

Commit 8128973

Browse files
committed
fixup! bin/xbps-rindex: write all repodata's to tempfiles before renaming them all
1 parent 934b9e9 commit 8128973

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bin/xbps-rindex/repoflush.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ repodata_write_fd(int fd, xbps_dictionary_t index, xbps_dictionary_t stage,
154154
if (r < 0)
155155
goto err;
156156

157-
158157
if (archive_write_close(ar) == ARCHIVE_FATAL) {
159158
r = -archive_errno(ar);
160159
xbps_error_printf(
@@ -217,7 +216,7 @@ repodata_write_tmpfile(char *path, size_t pathsz, char *tmp, size_t tmpsz,
217216

218217
umask(prevumask);
219218

220-
repodata_write_fd(fd, index, stage, meta, compression);
219+
r = repodata_write_fd(fd, index, stage, meta, compression);
221220
if (r < 0)
222221
goto err;
223222

0 commit comments

Comments
 (0)