[PC-BSD Commits] r13466 - pcbsd/current/src-sh/pbi-manager
svn at pcbsd.org
svn at pcbsd.org
Fri Oct 21 07:16:10 PDT 2011
Author: kris
Date: 2011-10-21 07:16:10 -0700 (Fri, 21 Oct 2011)
New Revision: 13466
Modified:
pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:
Add PBI sizes to the index file
Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager 2011-10-21 13:43:14 UTC (rev 13465)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager 2011-10-21 14:16:10 UTC (rev 13466)
@@ -1924,7 +1924,8 @@
mv "${PBI_IT_ADDINDEX}" "${PBI_TMPDIR}/.indextmp"
local _date=`date '+%s'`
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"
+ local _psize=`du -k ${PBI_FILENAME} | cut -f 1`
+ echo "${_pbilow}:${PBI_APPARCH}:${PBI_PROGVERSION}:${_sha256}:${PBI_PROGMDATE}:${PBI_IT_ADDURL}:$_date:${PBI_IT_ADDBPVERS}:current:${_psize}:" >>"${PBI_TMPDIR}/.indextmp"
sort ${PBI_TMPDIR}/.indextmp > "${PBI_IT_ADDINDEX}"
}
@@ -2052,6 +2053,9 @@
echo "------------------------------------"
echo "Application: $aName"
echo "Version: $PBI_UPNVER"
+ if [ ! -z "$PBI_UPSIZE" ] ; then
+ echo "Size: $PBI_UPSIZE"
+ fi
if [ ! -z "$PBI_BROWSE_LISTALLPBI" ] ; then
echo "Category: $catCheck"
fi
@@ -4864,6 +4868,7 @@
PBI_UPCSUM=""
PBI_UPMDATE=""
PBI_UPREPO=""
+ PBI_UPSIZE=""
# If we are looking for the current app, set _uver accordingly
if [ "$_uver" = "current" ] ; then
@@ -4894,6 +4899,7 @@
PBI_UPPATCHES="`echo $_upLine | cut -d ':' -f 8`"
PBI_UPCSUM="`echo $_upLine | cut -d ':' -f 4`"
PBI_UPMDATE="`echo $_upLine | cut -d ':' -f 5`"
+ PBI_UPSIZE="`echo $_upLine | cut -d ':' -f 8`"
PBI_UPMIRROR="`cat ${PBI_DBMIRRORDIR}/${_rMd5} 2>/dev/null`"
PBI_UPREPO="${_rMd5}"
More information about the Commits
mailing list