[PC-BSD Commits] r19931 - pcbsd/current/src-sh/pc-metapkgmanager

svn at pcbsd.org svn at pcbsd.org
Thu Oct 25 11:33:22 PDT 2012


Author: kris
Date: 2012-10-25 18:33:22 +0000 (Thu, 25 Oct 2012)
New Revision: 19931

Modified:
   pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager
Log:

Make pc-metapkgmanager use get_mirror()



Modified: pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager
===================================================================
--- pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2012-10-25 18:32:12 UTC (rev 19930)
+++ pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2012-10-25 18:33:22 UTC (rev 19931)
@@ -595,8 +595,8 @@
 use_default_mirror()
 {
   # Get the default mirror URL
-  PCBSD_ETCCONF="/usr/local/etc/pcbsd.conf"
-  local mirrChk="`sed -n 's/PCBSD_MIRROR: //p' ${PCBSD_ETCCONF} 2>/dev/null`"
+  get_mirror
+  local mirrChk="$VAL"
   local pcVer="`pbreg get /PC-BSD/Version 2>/dev/null`"
   local pcArch="`uname -m`"
   if [ -z "${mirrChk}" -o -z "${pcVer}" -o -z "$pcArch" ] ; then 



More information about the Commits mailing list