diff options
author | obrien <obrien@FreeBSD.org> | 2001-02-17 20:04:41 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-02-17 20:04:41 +0000 |
commit | 94567e9b0d56d754d15642bf3af3fb3d6862d646 (patch) | |
tree | f5ba812bb314b0e41115de5a1db61e787c193190 | |
parent | 2136f987f0016bfd9e8b6cf7d850f0091a1b80df (diff) | |
download | FreeBSD-src-94567e9b0d56d754d15642bf3af3fb3d6862d646.zip FreeBSD-src-94567e9b0d56d754d15642bf3af3fb3d6862d646.tar.gz |
MFS: getpackagesite() from RELENG_4 that allows the code to be the same.
-rw-r--r-- | usr.sbin/pkg_install/add/main.c | 20 |
1 files changed, 16 insertions, 4 deletions
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/"); |