Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

(no subject)

From: Marc Espie <espie(at)nerim.net>
Date: Mon Aug 04 2003 - 13:44:54 EDT


This will get the site selector to fail if MASTER_SITESn is not defined, instead of silently going over to MASTER_SITES.

I believe it's a good idea, since MASTER_SITESn not defined will often be due to misspellings or logic error, and an extra mirror in the MASTER_SITES list may have the file, but veeeerryyy far, which will make for a very slow fetching, thus a hard-to-find problem.

Okay ?

Index: bsd.port.mk



RCS file: /cvs/ports/infrastructure/mk/bsd.port.mk,v retrieving revision 1.578
diff -u -r1.578 bsd.port.mk
--- bsd.port.mk	4 Aug 2003 14:37:10 -0000	1.578
+++ bsd.port.mk	4 Aug 2003 17:42:36 -0000
@@ -798,6 +798,8 @@
 MASTER_SITES${_I}:= ${MASTER_SITE_OVERRIDE} ${MASTER_SITES${_I}}  . endif
_SITE_SELECTOR+=*:${_I}) sites="${MASTER_SITES${_I}}";;
+. else
+_SITE_SELECTOR+=*:${_I}) echo >&2 "Error: MASTER_SITES${_I} not defined";;  . endif
 .endfor
_SITE_SELECTOR+=*) sites="${MASTER_SITES}";; esac
Received on Mon Aug 4 13:46:33 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:45:10 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library