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

svn at pcbsd.org svn at pcbsd.org
Mon Jul 2 10:21:51 PDT 2012


Author: kris
Date: 2012-07-02 17:21:49 +0000 (Mon, 02 Jul 2012)
New Revision: 17571

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

When doing pbi_add -i -v, display file archive contents now



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-07-02 17:11:54 UTC (rev 17570)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-07-02 17:21:49 UTC (rev 17571)
@@ -2737,6 +2737,14 @@
 		echo "MimeRegistration: YES"
 	fi
 
+	# If verbose mode, show file contents
+	if [ "$PBI_VERBOSE" = "YES" ] ; then
+	  	pbi_find_archive_header
+                echo "TOTALFILES: ${PBI_ARCHIVE_COUNT}"
+                echo "Archive Contents:"
+                echo "--------------------------------------"
+                tail +$PBI_SKIP_ARCHLINES "${PBI_FILENAME}" | tar tvf - 
+        fi
 }
 
 # See if we need to display gui header info



More information about the Commits mailing list