summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-02-14 12:42:09 +0000
committerbapt <bapt@FreeBSD.org>2013-02-14 12:42:09 +0000
commitefbce5fcea5903190e1fd6186d3c8ccccc8a033a (patch)
tree8d2176d7aeea5d686fc1e77dfc313382cccef1fd /usr.sbin
parentd7b1840a86d06ec4dc5506a5063682c00642dadf (diff)
downloadFreeBSD-src-efbce5fcea5903190e1fd6186d3c8ccccc8a033a.zip
FreeBSD-src-efbce5fcea5903190e1fd6186d3c8ccccc8a033a.tar.gz
In case of failure of the pkg boostrap advice the user to either change the
PACKAGESITE they use or install from ports directly indicating where the port is localted in the port collection Submitted by: kientzle
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg/pkg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c
index 1b3146b..a3c3fec 100644
--- a/usr.sbin/pkg/pkg.c
+++ b/usr.sbin/pkg/pkg.c
@@ -411,6 +411,8 @@ bootstrap_pkg(void)
fetchfail:
warnx("Error fetching %s: %s", url, fetchLastErrString);
+ fprintf(stderr, "A pre-built version of pkg could not be found for your system.\n");
+ fprintf(stderr, "Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.\n");
cleanup:
if (remote != NULL)
OpenPOWER on IntegriCloud