From 6d87bf04d07a3796c3f85bbd9ef0ad9e97331302 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 4 Jul 2013 11:05:42 +0200 Subject: [PATCH] Revert "xbps-rindex: [add] add index-files.plist the first in the repo archive." This reverts commit e76874f5138224df474f7ad1f76adcdba5bc9069. This slows down some ops that were much faster before; will use another approach. --- 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 63d79917..ba605e8d 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(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; } free(xml); - 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; }