summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg/pkg.c
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-03-08 10:43:03 +0000
committerbapt <bapt@FreeBSD.org>2013-03-08 10:43:03 +0000
commit6438218c148cbea78ac24b7bc3d6e0480c6c55fd (patch)
treed72202b9ed40a1e29ad490a17662aa954cbe6b10 /usr.sbin/pkg/pkg.c
parentadea04bda7cbe5a2abda01ee42f309d5e6287366 (diff)
downloadFreeBSD-src-6438218c148cbea78ac24b7bc3d6e0480c6c55fd.zip
FreeBSD-src-6438218c148cbea78ac24b7bc3d6e0480c6c55fd.tar.gz
Fix bootstrapping pkgng by not appending "/latest/" to PACKAGESITE.
Reporter by : Alexander Yerenkow (via irc)
Diffstat (limited to 'usr.sbin/pkg/pkg.c')
-rw-r--r--usr.sbin/pkg/pkg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c
index ccb1b91..0aef3da 100644
--- a/usr.sbin/pkg/pkg.c
+++ b/usr.sbin/pkg/pkg.c
@@ -167,7 +167,7 @@ bootstrap_pkg(void)
warnx("No MIRROR_TYPE defined");
return (-1);
}
- snprintf(url, MAXPATHLEN, "%s/latest/Latest/pkg.txz", packagesite);
+ snprintf(url, MAXPATHLEN, "%s/Latest/pkg.txz", packagesite);
snprintf(tmppkg, MAXPATHLEN, "%s/pkg.txz.XXXXXX",
getenv("TMPDIR") ? getenv("TMPDIR") : _PATH_TMP);
OpenPOWER on IntegriCloud