Page MenuHomeFreeBSD

D25323.diff
No OneTemporary

D25323.diff

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

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)

Event Timeline