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

svn at pcbsd.org svn at pcbsd.org
Wed Dec 1 08:30:11 PST 2010


Author: kris
Date: 2010-12-01 08:30:11 -0800 (Wed, 01 Dec 2010)
New Revision: 8117

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

Fixed bug adding PBIs to repo index, use the actual file sha256, not the internal archive checksum



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2010-12-01 16:25:25 UTC (rev 8116)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2010-12-01 16:30:11 UTC (rev 8117)
@@ -1516,7 +1516,8 @@
 add_to_index() {
 	mv "${PBI_IT_ADDINDEX}" "${PBI_TMPDIR}/.indextmp"
 	local _date=`date '+%s'`
-	echo "${_pbilow}:${PBI_APPARCH}:${PBI_PROGVERSION}:${PBI_ARCHIVE_CHECKSUM}:${PBI_PROGMDATE}:${PBI_IT_ADDURL}:$_date:${PBI_IT_ADDBPVERS}:current" >>"${PBI_TMPDIR}/.indextmp"
+	local _sha256=`sha256 -q ${PBI_FILENAME}`
+	echo "${_pbilow}:${PBI_APPARCH}:${PBI_PROGVERSION}:${_sha256}:${PBI_PROGMDATE}:${PBI_IT_ADDURL}:$_date:${PBI_IT_ADDBPVERS}:current" >>"${PBI_TMPDIR}/.indextmp"
 	sort ${PBI_TMPDIR}/.indextmp > "${PBI_IT_ADDINDEX}"
 }
 



More information about the Commits mailing list