[PC-BSD Commits] r7938 - pcbsd/current/src-sh/pc-metapkgmanager

svn at pcbsd.org svn at pcbsd.org
Thu Oct 28 13:09:54 PDT 2010


Author: kris
Date: 2010-10-28 13:09:54 -0700 (Thu, 28 Oct 2010)
New Revision: 7938

Modified:
   pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager
Log:

Only append to log, and also display current action



Modified: pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager
===================================================================
--- pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2010-10-28 20:08:45 UTC (rev 7937)
+++ pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2010-10-28 20:09:54 UTC (rev 7938)
@@ -68,14 +68,15 @@
         while read pkg
         do
 		echo "Installing: $pkg"
+		echo "Installing: $pkg" >>${LOGFILE}
 		# Start installing the packages now
 		if [ "$loc" = "NET" ] ; then
 			PACKAGESITE="$2" ; export PACKAGESITE
-			pkg_add -f -r "$pkg" >>${LOGFILE} 2>${LOGFILE}
+			pkg_add -f -r "$pkg" >>${LOGFILE} 2>>${LOGFILE}
 			if [ "$?" != "0" ] ; then _pkgStatus=1 ; fi
 		else
 			cd "${2}"
-			pkg_add -f "${pkg}.tbz" >${LOGFILE} 2>${LOGFILE}
+			pkg_add -f "${pkg}.tbz" >>${LOGFILE} 2>>${LOGFILE}
 			if [ "$?" != "0" ] ; then _pkgStatus=1 ; fi
 		fi
         done < ${MPDIR}/${_apkg}/pkg-list
@@ -135,7 +136,8 @@
 		if [ "$?" = "0" ] ; then echo "Skipping Required: ${rmPkg}" ; continue; fi
 
 		echo "Removing: ${rmPkg}"
-		pkg_delete ${rmPkg} >${LOGFILE} 2>${LOGFILE}
+		echo "Removing: ${rmPkg}" >>${LOGFILE}
+		pkg_delete ${rmPkg} >>${LOGFILE} 2>>${LOGFILE}
 
 	done < ${MPDIR}/${_dpkg}/pkg-list
 



More information about the Commits mailing list