[PC-BSD Commits] r18042 - pcbsd/current/src-sh/pbi-manager

svn at pcbsd.org svn at pcbsd.org
Wed Aug 1 07:33:11 PDT 2012


Author: kris
Date: 2012-08-01 14:33:11 +0000 (Wed, 01 Aug 2012)
New Revision: 18042

Modified:
   pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:

Speed up pkg-cache process, don't need to rebuild a package if it hasn't changed



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-08-01 14:29:56 UTC (rev 18041)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-08-01 14:33:11 UTC (rev 18042)
@@ -6850,19 +6850,19 @@
 
   # Not installed, see if we have a pkg to install instead
   if [ -e "/pkgs/${pkgName}.txz" ] ; then
-     echo "Checking package: ${pkgName}"
      REBUILDPKG="NO"
-     pkg_info -r /pkgs/${pkgName}.txz | grep "Dependency:" | cut -d ' ' -f 2 > /tmp/deps.$$
-     while read dLine
-     do
-	pkg_info $dLine >/dev/null 2>/dev/null
-        if [ $? -ne 0 ] ; then
-	   echo "Package dependencies updated! Rebuilding port..."
-           REBUILDPKG="YES"
-	   break
-        fi
-     done < /tmp/deps.$$
-     rm /tmp/deps.$$
+     #echo "Checking package: ${pkgName}"
+     #pkg_info -r /pkgs/${pkgName}.txz | grep "Dependency:" | cut -d ' ' -f 2 > /tmp/deps.$$
+     #while read dLine
+     #do
+     #	pkg_info $dLine >/dev/null 2>/dev/null
+     #   if [ $? -ne 0 ] ; then
+     #	   echo "Package dependencies updated! Rebuilding port..."
+     #     REBUILDPKG="YES"
+     #	   break
+     #  fi
+     #done < /tmp/deps.$$
+     #rm /tmp/deps.$$
 
      # Fix some pkgs bugging us with license questions
      PACKAGE_BUILDING=yes



More information about the Commits mailing list