From 94567e9b0d56d754d15642bf3af3fb3d6862d646 Mon Sep 17 00:00:00 2001 From: obrien Date: Sat, 17 Feb 2001 20:04:41 +0000 Subject: MFS: getpackagesite() from RELENG_4 that allows the code to be the same. --- usr.sbin/pkg_install/add/main.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/pkg_install/add/main.c b/usr.sbin/pkg_install/add/main.c index ad44f2d..bd6db6f 100644 --- a/usr.sbin/pkg_install/add/main.c +++ b/usr.sbin/pkg_install/add/main.c @@ -200,11 +200,23 @@ getpackagesite(void) strcat(sitepath, u.machine); reldate = getosreldate(); - if (reldate == 500998) - strcat(sitepath, "/packages-5.0-release"); - else if (reldate >= 500999) + if (reldate == 410000) + strcat(sitepath, "/packages-4.1-release"); + else if (reldate == 420000) + strcat(sitepath, "/packages-4.2-release"); + else if (reldate == 430000) + strcat(sitepath, "/packages-4.3-release"); + else if (reldate == 440000) + strcat(sitepath, "/packages-4.4-release"); + else if (reldate == 450000) + strcat(sitepath, "/packages-4.5-release"); + else if (300000 <= reldate && reldate <= 399000) + strcat(sitepath, "/packages-3-stable"); + else if (400000 <= reldate && reldate <= 499000) + strcat(sitepath, "/packages-4-stable"); + else if (510000 <= reldate && reldate <= 599000) /* get real values!! */ strcat(sitepath, "/packages-5-stable"); - else if (reldate >= 500000) + else strcat(sitepath, "/packages-current"); strcat(sitepath, "/Latest/"); -- cgit v1.1