Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102638206
D25323.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
885 B
Referenced Files
None
Subscribers
None
D25323.diff
View Options
Index: head/usr.sbin/pkg/pkg.c
===================================================================
--- head/usr.sbin/pkg/pkg.c
+++ head/usr.sbin/pkg/pkg.c
@@ -915,10 +915,15 @@
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");
+ if (fetchLastErrCode == FETCH_RESOLV) {
+ fprintf(stderr, "Address resolution failed for %s.\n", packagesite);
+ fprintf(stderr, "Consider changing PACKAGESITE.\n");
+ } else {
+ 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 (fd_sig != -1) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 4:25 AM (20 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14653150
Default Alt Text
D25323.diff (885 B)
Attached To
Mode
D25323: Provide a friendlier message when bootstrap fails due to address resolution
Attached
Detach File
Event Timeline
Log In to Comment