From e76874f5138224df474f7ad1f76adcdba5bc9069 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 4 Jul 2013 03:33:42 +0200 Subject: [PATCH] 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. --- bin/xbps-rindex/repoflush.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/xbps-rindex/repoflush.c b/bin/xbps-rindex/repoflush.c index ba605e8d..63d79917 100644 --- a/bin/xbps-rindex/repoflush.c +++ b/bin/xbps-rindex/repoflush.c @@ -60,19 +60,19 @@ repodata_flush(struct xbps_handle *xhp, const char *repodir, archive_write_set_options(ar, "compression-level=9"); archive_write_open_fd(ar, repofd); - xml = xbps_dictionary_externalize(idx); + xml = xbps_dictionary_externalize(idxfiles); assert(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); return -1; } free(xml); - xml = xbps_dictionary_externalize(idxfiles); + xml = xbps_dictionary_externalize(idx); assert(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); return -1; }