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

svn at pcbsd.org svn at pcbsd.org
Mon Jul 16 06:56:42 PDT 2012


Author: kris
Date: 2012-07-16 13:56:42 +0000 (Mon, 16 Jul 2012)
New Revision: 17754

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

Don't need to keep re-downloading PBI icons



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-07-16 13:55:46 UTC (rev 17753)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-07-16 13:56:42 UTC (rev 17754)
@@ -5033,6 +5033,11 @@
 		fi
 		iName=`echo $line | cut -d ';' -f 1`
 		ext=`echo $aIcon | sed 's/.*\.//'`
+	
+		# If we already have this icon, we can skip
+		if [ -e "${PBI_DBICONDIR}/${_repoMd5}-${iName}.${ext}" ] ; then
+			continue
+		fi
 
 		# Now fetch the file
 		sFile="${PBI_DBICONDIR}/${_repoMd5}-${iName}.${ext}"



More information about the Commits mailing list