Date: Sun, 9 Jan 2005 15:39:04 +0100 From: "Simon L. Nielsen" <simon@FreeBSD.org> To: freebsd-ports@FreeBSD.org Subject: Makeing fetchindex really mirror INDEX Message-ID: <20050109143903.GC1187@zaphod.nitro.dk>
next in thread | raw e-mail | index | archive | help
--G6nVm6DDWH/FONJq Content-Type: multipart/mixed; boundary="XvKFcGCOAo53UbWW" Content-Disposition: inline --XvKFcGCOAo53UbWW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello I patched fetchindex to really only download a new INDEX if it's changed and to only uncompress INDEX.bz2 it's newer than INDEX. Patch should be attached. Any complaints to committing this? BTW. the mirror mode fetch(1) is broken in at least FreeBSD 5.3 and newer, but seems to works on 4.10. I have made a patch [1], which I hope to get committed soon, so if the fetchindex patch don't work for you that might be the reason. [1] http://people.freebsd.org/~simon/patches/fetch.mirror.patch --=20 Simon L. Nielsen --XvKFcGCOAo53UbWW Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ports-fetchindex.realmir.patch" Content-Transfer-Encoding: quoted-printable Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/ports/Makefile,v retrieving revision 1.90 diff -u -d -r1.90 Makefile --- Makefile 17 Dec 2004 11:23:22 -0000 1.90 +++ Makefile 9 Jan 2005 14:21:13 -0000 @@ -70,7 +70,12 @@ @cd ${.CURDIR} && make ${.CURDIR}/${INDEXFILE} =20 fetchindex: - @cd ${.CURDIR} && ${FETCHINDEX} ${MASTER_SITE_INDEX}/${INDEXFILE}.bz2 && = bunzip2 -f ${INDEXFILE}.bz2 && chmod a+r ${INDEXFILE} + @${FETCHINDEX} -o ${.CURDIR}/${INDEXFILE}.bz2 \ + ${MASTER_SITE_INDEX}${INDEXFILE}.bz2 + @cd ${.CURDIR} && if [ ${INDEXFILE}.bz2 -nt ${INDEXFILE} ]; then \ + bunzip2 < ${INDEXFILE}.bz2 > ${INDEXFILE}; \ + chmod a+r ${INDEXFILE}; \ + fi =20 MASTER_SITE_INDEX?=3D http://www.FreeBSD.org/ports/ FETCHINDEX?=3D fetch -am --XvKFcGCOAo53UbWW-- --G6nVm6DDWH/FONJq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB4UIHh9pcDSc1mlERAmTgAJ9GthP45XACf0M63K/p8Hf3pR/sbACcDoX0 e/y7zBlvIDh3m3vqNXAfLJk= =LRrd -----END PGP SIGNATURE----- --G6nVm6DDWH/FONJq--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050109143903.GC1187>