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

svn at pcbsd.org svn at pcbsd.org
Mon Nov 12 07:35:22 PST 2012


Author: kris
Date: 2012-11-12 15:35:21 +0000 (Mon, 12 Nov 2012)
New Revision: 20174

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

Use the meta-pkg full-pkg-list file when figuring out pkg lists, makes it much
faster to start installing packages



Modified: pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager
===================================================================
--- pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2012-11-12 12:14:06 UTC (rev 20173)
+++ pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2012-11-12 15:35:21 UTC (rev 20174)
@@ -779,6 +779,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