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

svn at pcbsd.org svn at pcbsd.org
Thu Mar 3 08:46:41 PST 2011


Author: kris
Date: 2011-03-03 08:46:41 -0800 (Thu, 03 Mar 2011)
New Revision: 9466

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

Make sure we delete with noschg any patch files



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-03-03 16:42:36 UTC (rev 9465)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-03-03 16:46:41 UTC (rev 9466)
@@ -1463,13 +1463,19 @@
 	fi
 
 	if [ ! -z "${_pbiNewDir}" -a -d "${_pbiNewDir}" -a "${_pbiNewDir}" != "/" ] ; then
-	 	rm -rf "${_pbiNewDir}"	
+	 	rm -rf "${_pbiNewDir}" >/dev/null 2>/dev/null
+	 	chflags -R noschg "${_pbiNewDir}" >/dev/null 2>/dev/null
+	 	rm -rf "${_pbiNewDir}" >/dev/null 2>/dev/null
 	fi
 	if [ ! -z "${_pbiOldDir}" -a -d "${_pbiOldDir}" -a "${_pbiOldDir}" != "/" ] ; then
-	 	rm -rf "${_pbiOldDir}"	
+	 	rm -rf "${_pbiOldDir}" >/dev/null 2>/dev/null
+	 	chflags -R noschg "${_pbiOldDir}" >/dev/null 2>/dev/null
+	 	rm -rf "${_pbiOldDir}" >/dev/null 2>/dev/null
 	fi
 	if [ ! -z "${_pbiPatchDir}" -a -d "${_pbiPatchDir}" -a "${_pbiPatchDir}" != "/" ] ; then
-	 	rm -rf "${_pbiPatchDir}"	
+	 	rm -rf "${_pbiPatchDir}" >/dev/null 2>/dev/null
+	 	chflags -R noschg "${_pbiPatchDir}" >/dev/null 2>/dev/null
+	 	rm -rf "${_pbiPatchDir}" >/dev/null 2>/dev/null
 	fi
 
 }



More information about the Commits mailing list