[PC-BSD Commits] r7371 - pcbsd-projects/pbi-manager

svn at pcbsd.org svn at pcbsd.org
Tue Aug 10 07:28:49 PDT 2010


Author: kris
Date: 2010-08-10 07:28:49 -0700 (Tue, 10 Aug 2010)
New Revision: 7371

Modified:
   pcbsd-projects/pbi-manager/pbi-manager
Log:

Cleanup the output of pbi_info -v a bit



Modified: pcbsd-projects/pbi-manager/pbi-manager
===================================================================
--- pcbsd-projects/pbi-manager/pbi-manager	2010-08-10 13:49:53 UTC (rev 7370)
+++ pcbsd-projects/pbi-manager/pbi-manager	2010-08-10 14:28:49 UTC (rev 7371)
@@ -847,7 +847,10 @@
 # Display pbi information to stdout
 pbi_display_info() {
 
-	echo "PBI Information for: $PBI_PROGNAME-$PBI_PROGVERSION"
+	tmp="`echo ${PBI_PROGNAME} | tr -d ' ' | tr [A-Z] [a-z]`"
+        _appname="${tmp}-${PBI_PROGVERSION}-${PBI_APPARCH}"
+
+	echo "PBI Information for: $_appname"
 	echo "-----------------------------------------------------"
 	echo "Name: ${PBI_PROGNAME}"
 	echo "Version: ${PBI_PROGVERSION}"
@@ -2079,6 +2082,7 @@
 				if [ "$PBI_VERBOSE" = "YES" ] ; then
         				load_info_from_dir "${PBI_DBDIR}/${i}"
 					pbi_display_info
+					echo " "
 				else
 					echo "${i}"
 				fi



More information about the Commits mailing list