aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-05-09 01:37:49 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-05-09 01:37:49 +0000
commit1e5a82fe65359521cb0f1769934e253739def375 (patch)
treea6819f3db51ccee71b5097f6e5e862e6783f9bc2 /usr.sbin/pkg_install
parent3f36f543ff6990256a8abe42354f84a932f88d05 (diff)
Notes
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/add/main.c11
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);