xbps-rindex: [add] add index-files.plist the first in the repo archive.
By having index.plist the 2nd entry in archive there are more chances to skip identical bytes in the archive via rsync.
This commit is contained in:
parent
42ba861e21
commit
e76874f513
@ -60,19 +60,19 @@ repodata_flush(struct xbps_handle *xhp, const char *repodir,
|
|||||||
archive_write_set_options(ar, "compression-level=9");
|
archive_write_set_options(ar, "compression-level=9");
|
||||||
archive_write_open_fd(ar, repofd);
|
archive_write_open_fd(ar, repofd);
|
||||||
|
|
||||||
xml = xbps_dictionary_externalize(idx);
|
xml = xbps_dictionary_externalize(idxfiles);
|
||||||
assert(xml);
|
assert(xml);
|
||||||
if (xbps_archive_append_buf(ar, xml, strlen(xml),
|
if (xbps_archive_append_buf(ar, xml, strlen(xml),
|
||||||
XBPS_PKGINDEX, 0644, "root", "root") != 0) {
|
XBPS_PKGINDEX_FILES, 0644, "root", "root") != 0) {
|
||||||
free(xml);
|
free(xml);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
free(xml);
|
free(xml);
|
||||||
|
|
||||||
xml = xbps_dictionary_externalize(idxfiles);
|
xml = xbps_dictionary_externalize(idx);
|
||||||
assert(xml);
|
assert(xml);
|
||||||
if (xbps_archive_append_buf(ar, xml, strlen(xml),
|
if (xbps_archive_append_buf(ar, xml, strlen(xml),
|
||||||
XBPS_PKGINDEX_FILES, 0644, "root", "root") != 0) {
|
XBPS_PKGINDEX, 0644, "root", "root") != 0) {
|
||||||
free(xml);
|
free(xml);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user