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

svn at pcbsd.org svn at pcbsd.org
Fri Mar 4 08:44:11 PST 2011


Author: kris
Date: 2011-03-04 08:44:11 -0800 (Fri, 04 Mar 2011)
New Revision: 9489

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

Speed up cleaning of hashdir with find only displaying files with links=1



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-03-04 16:33:41 UTC (rev 9488)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-03-04 16:44:11 UTC (rev 9489)
@@ -3794,7 +3794,7 @@
 	echo "Cleaning shared-hash dir..."
 	cd ${PBI_HASHDIR}
 	tmphashlist="${PBI_TMPDIR}/.pbi-hashdir.$$"
-	find * -type f > "${tmphashlist}" 2>/dev/null
+	find * -type f -links 1 > "${tmphashlist}" 2>/dev/null
         while read hl
         do
 		if [ ! -f "$hl" -o -h "$hl" ] ; then continue ; fi



More information about the Commits mailing list