diff options
author | kris <kris@FreeBSD.org> | 2002-12-04 17:22:48 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-12-04 17:22:48 +0000 |
commit | 776b673a0faf2a47e2f8bf5f9c0d3d027daa4e7d (patch) | |
tree | 920c9d47a33fde37473c47c120db8d16334c1af7 /usr.sbin/pkg_install | |
parent | 33f1f4818925b1f16f5cfc0bd2db3b58f24227f1 (diff) | |
download | FreeBSD-src-776b673a0faf2a47e2f8bf5f9c0d3d027daa4e7d.zip FreeBSD-src-776b673a0faf2a47e2f8bf5f9c0d3d027daa4e7d.tar.gz |
Minimal change to cause pkg_version to examine the new INDEX-5 file
instead of INDEX. This should be done better since this file name will
depend on the FreeBSD major version.
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r-- | usr.sbin/pkg_install/version/perform.c | 3 | ||||
-rw-r--r-- | usr.sbin/pkg_install/version/pkg_version.1 | 2 |
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 ac39727..db2fb19 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 e252210..f45acba 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 |