[PC-BSD Commits] r20175 - pcbsd/branches/9.1/src-sh/pc-metapkgmanager

svn at pcbsd.org svn at pcbsd.org
Mon Nov 12 07:37:41 PST 2012


Author: kris
Date: 2012-11-12 15:37:41 +0000 (Mon, 12 Nov 2012)
New Revision: 20175

Modified:
   pcbsd/branches/9.1/src-sh/pc-metapkgmanager/pc-metapkgmanager
Log:

MFC the fix to speed up installing meta-pkgs



Modified: pcbsd/branches/9.1/src-sh/pc-metapkgmanager/pc-metapkgmanager
===================================================================
--- pcbsd/branches/9.1/src-sh/pc-metapkgmanager/pc-metapkgmanager	2012-11-12 15:35:21 UTC (rev 20174)
+++ pcbsd/branches/9.1/src-sh/pc-metapkgmanager/pc-metapkgmanager	2012-11-12 15:37:41 UTC (rev 20175)
@@ -745,6 +745,19 @@
   PKGLIST=""
   DEPS=""
   echo "Getting package list..."
+
+  # If we can get the full-pkglist, use it instead of figuring out deps manually
+  if [ -e "${MPDIR}/${_mpkg}/full-pkg-list" ] ; then
+     PKGCOUNT=0
+     while read line
+     do
+        if [ -d "${_chroot}/var/db/pkg/$line" -a "$_strip" = "YES" ] ; then continue ; fi
+        PKGLIST="${PKGLIST} ${line}"
+        PKGCOUNT=`expr ${PKGCOUNT} + 1`
+     done < ${MPDIR}/${_mpkg}/full-pkg-list
+     return
+  fi
+
   while read mPkg
   do
     if [ ! -e "${DEPDIR}/${mPkg}.deps" ] ; then



More information about the Commits mailing list