aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-12-04 17:22:48 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-12-04 17:22:48 +0000
commitcc865772a5000391bab73cdc11fe2c602abdcb23 (patch)
tree920c9d47a33fde37473c47c120db8d16334c1af7 /usr.sbin/pkg_install
parent8d5a0b4303f5449a7da31018b274aaa507f77fec (diff)
Notes
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/version/perform.c3
-rw-r--r--usr.sbin/pkg_install/version/pkg_version.12
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/version/perform.c b/usr.sbin/pkg_install/version/perform.c
index ac3972784b54..db2fb19c3cc7 100644
--- a/usr.sbin/pkg_install/version/perform.c
+++ b/usr.sbin/pkg_install/version/perform.c
@@ -51,9 +51,10 @@ pkg_perform(char **indexarg)
/*
* Try to find and open the INDEX. We only check IndexFile != NULL
* later, if we actually need the INDEX.
+ * XXX This should not be hard-coded to INDEX-5.
*/
if (*indexarg == NULL)
- snprintf(tmp, PATH_MAX, "%s/INDEX", PORTS_DIR);
+ snprintf(tmp, PATH_MAX, "%s/INDEX-5", PORTS_DIR);
else
strlcpy(tmp, *indexarg, PATH_MAX);
if (isURL(tmp))
diff --git a/usr.sbin/pkg_install/version/pkg_version.1 b/usr.sbin/pkg_install/version/pkg_version.1
index e252210080a4..f45acba03f40 100644
--- a/usr.sbin/pkg_install/version/pkg_version.1
+++ b/usr.sbin/pkg_install/version/pkg_version.1
@@ -64,7 +64,7 @@ cannot be located,
.Nm
will search for the package in the ports collection index file
(typically
-.Pa /usr/ports/INDEX ) .
+.Pa /usr/ports/INDEX-5 ) .
Any matching version number(s) there will be used to determine whether
the installed package is up-to-date or requires updating.
.Pp