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

svn at pcbsd.org svn at pcbsd.org
Tue Mar 13 12:57:32 PDT 2012


Author: kris
Date: 2012-03-13 19:57:32 +0000 (Tue, 13 Mar 2012)
New Revision: 15802

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

Make sure we use -f when doing pkg_delete, since not all pkg's get removed in order



Modified: pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager
===================================================================
--- pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2012-03-13 19:43:54 UTC (rev 15801)
+++ pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2012-03-13 19:57:32 UTC (rev 15802)
@@ -178,7 +178,7 @@
 
 		echo "Removing: ${rmPkg}"
 		echo "Removing: ${rmPkg}" >>${LOGFILE}
-		pkg_delete ${rmPkg} >>${LOGFILE} 2>>${LOGFILE}
+		pkg_delete -f ${rmPkg} >>${LOGFILE} 2>>${LOGFILE}
 
 	done < ${MPDIR}/${_dpkg}/pkg-list
 
@@ -219,7 +219,7 @@
         pkg_info -R "${1}" | grep "Required" >/dev/null 2>/dev/null
         if [ "$?" != "0" ] ; then
 		echo "Removing non-used pkg: $1" >>${LOGFILE} 2>>${LOGFILE} 
-                pkg_delete ${1} >>${LOGFILE} 2>>${LOGFILE}
+                pkg_delete -f ${1} >>${LOGFILE} 2>>${LOGFILE}
                 return 0
         fi
         return 1



More information about the Commits mailing list