A WIP snuck in the rev 1.34 commit.

This commit is contained in:
obrien 2001-05-09 01:37:49 +00:00
parent d360ec0f2c
commit ff38141eb3

View File

@ -191,17 +191,12 @@ getpackagesite(void)
return sitepath;
}
if (getenv("PACKAGEMIRROR"))
strcpy(sitepath, getenv("PACKAGEMIRROR"));
if (getenv("PACKAGEROOT"))
strcpy(sitepath, getenv("PACKAGEROOT"));
else
strcpy(sitepath, "ftp://ftp.FreeBSD.org");
if (getenv("PACKAGEROOT"))
strcpy(sitepath, getenv("PACKAGEMIRRORROOT"));
else
strcat(sitepath, "/pub");
strcat(sitepath, "/FreeBSD/ports/");
strcat(sitepath, "/pub/FreeBSD/ports/");
uname(&u);
strcat(sitepath, u.machine);