Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@×××××.com>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] [PATCH] rsync metadata cache patch (obsoletes metadata transfer on sync)
Date: Mon, 02 Jan 2006 02:23:44
Message-Id: 43B88F03.2060900@gmail.com
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Hi,
5
6 I was playing with the metadata cache stuff this weekend and decided to write a patch that obsoletes metadata transfers on sync. Simply apply this patch to portage-2.1_preX and add "metadb" to FEATURES in make.conf. Side note: this feature should resolve bug 90518.
7
8 I also wrote a script that tests consistency between regenerated metadata and the pre-generated metadata from the rsync mirrors. Actually, writing this script taught me what I needed to know to write the patch. If you want to try this script, you need to remove /var/cache/edb/dep/${PORTDIR} in order to force a regen. Also, the script will not work as designed when FEATURES="metadb" is enabled.
9
10 Zac
11 -----BEGIN PGP SIGNATURE-----
12 Version: GnuPG v1.4.2 (GNU/Linux)
13
14 iD8DBQFDuI8D/ejvha5XGaMRArFhAJ9/zXBSlbMK84f0EHLjTUHf6Vg6/ACgwOkw
15 zjV8plh/mv3JwgXRcsxsSoA=
16 =7CP0
17 -----END PGP SIGNATURE-----

Attachments

File name MIME type
portage-2.1-metadb.patch text/x-patch
rsync-metadata-consistency.py text/x-python

Replies