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

svn at pcbsd.org svn at pcbsd.org
Thu Mar 22 23:10:26 PDT 2012


Author: kris
Date: 2012-03-23 06:10:26 +0000 (Fri, 23 Mar 2012)
New Revision: 15972

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

Make the status process much quicker



Modified: pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager
===================================================================
--- pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2012-03-23 06:04:42 UTC (rev 15971)
+++ pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2012-03-23 06:10:26 UTC (rev 15972)
@@ -328,11 +328,10 @@
 	# Now query pkg_info to confirm each pkg is installed
 	while read pkg
 	do
-		${_chrootcmd} pkg_info $pkg >/dev/null 2>/dev/null
-		if [ "$?" != "0" ] ; then 
+		if [ -e "${_chroot}/var/db/pkg/${pkg}" ] ; then
+			found=0
+		else
 			nfound=1
-		else
-			found=0
 		fi
 		
 	done < ${MPDIR}/${_mpkg}/pkg-list



More information about the Commits mailing list