diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2001-05-09 01:37:49 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2001-05-09 01:37:49 +0000 |
| commit | 1e5a82fe65359521cb0f1769934e253739def375 (patch) | |
| tree | a6819f3db51ccee71b5097f6e5e862e6783f9bc2 /usr.sbin/pkg_install | |
| parent | 3f36f543ff6990256a8abe42354f84a932f88d05 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/pkg_install')
| -rw-r--r-- | usr.sbin/pkg_install/add/main.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/usr.sbin/pkg_install/add/main.c b/usr.sbin/pkg_install/add/main.c index 84266318782e..162343e5dd18 100644 --- a/usr.sbin/pkg_install/add/main.c +++ b/usr.sbin/pkg_install/add/main.c @@ -191,17 +191,12 @@ getpackagesite(void) return sitepath; } - if (getenv("PACKAGEMIRROR")) - strcpy(sitepath, getenv("PACKAGEMIRROR")); - else - strcpy(sitepath, "ftp://ftp.FreeBSD.org"); - if (getenv("PACKAGEROOT")) - strcpy(sitepath, getenv("PACKAGEMIRRORROOT")); + strcpy(sitepath, getenv("PACKAGEROOT")); else - strcat(sitepath, "/pub"); + strcpy(sitepath, "ftp://ftp.FreeBSD.org"); - strcat(sitepath, "/FreeBSD/ports/"); + strcat(sitepath, "/pub/FreeBSD/ports/"); uname(&u); strcat(sitepath, u.machine); |
