1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Fix path to INDEX file on 5.x.

Submitted by:	nork
This commit is contained in:
Adam Weinberger 2004-08-24 19:21:12 +00:00
parent c9d52b0bb9
commit 36223833b7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117208
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,14 @@
--- src/refresh.c.orig Tue Aug 24 15:18:57 2004
+++ src/refresh.c Tue Aug 24 15:20:12 2004
@@ -62,7 +62,11 @@
__RCSID("$Id: refresh.c,v 1.32 2004/08/24 02:40:08 sethk Exp $");
/* XXX use libinstall/lib.h */
+#if __FreeBSD_version >= 500036
+#define INDEX_FN PORTS_BASE "/INDEX-5"
+#else
#define INDEX_FN PORTS_BASE "/INDEX"
+#endif
#define INDEX_MAXLN 4096
#define DB_DIR "/var/db/pkg"
#define ITER_BYTES (128 * 1024)

View File

@ -0,0 +1,14 @@
--- src/refresh.c.orig Tue Aug 24 15:18:57 2004
+++ src/refresh.c Tue Aug 24 15:20:12 2004
@@ -62,7 +62,11 @@
__RCSID("$Id: refresh.c,v 1.32 2004/08/24 02:40:08 sethk Exp $");
/* XXX use libinstall/lib.h */
+#if __FreeBSD_version >= 500036
+#define INDEX_FN PORTS_BASE "/INDEX-5"
+#else
#define INDEX_FN PORTS_BASE "/INDEX"
+#endif
#define INDEX_MAXLN 4096
#define DB_DIR "/var/db/pkg"
#define ITER_BYTES (128 * 1024)