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

svn at pcbsd.org svn at pcbsd.org
Wed Mar 21 00:25:14 PDT 2012


Author: kris
Date: 2012-03-21 07:25:14 +0000 (Wed, 21 Mar 2012)
New Revision: 15866

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

Exit if no meta-pkg data available



Modified: pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager
===================================================================
--- pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2012-03-20 20:05:44 UTC (rev 15865)
+++ pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2012-03-21 07:25:14 UTC (rev 15866)
@@ -406,11 +406,14 @@
 	chmod 666 ${LOGFILE}
 }
 
-
 checkup_pkgs() {
 
   _nodsp="$1"
 
+  if [ ! -e "${MPDIR}/master-pkg-index" ] ; then
+    return
+  fi
+
   # Checkout the installed pkgs and compare to master list
   local fPkgUp=0
   ls ${_chroot}/var/db/pkg > /tmp/.pkgList.$$



More information about the Commits mailing list