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

svn at pcbsd.org svn at pcbsd.org
Wed Dec 8 10:50:39 PST 2010


Author: kris
Date: 2010-12-08 10:50:39 -0800 (Wed, 08 Dec 2010)
New Revision: 8173

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

Make sure we use -f to remove read-only hard-links during pbi_patch



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2010-12-08 17:41:27 UTC (rev 8172)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2010-12-08 18:50:39 UTC (rev 8173)
@@ -1767,7 +1767,7 @@
        	 	if [ "$HLINKS" != "1" ] ; then
 			mv "${PBI_PATCHWRKDIR}/${_tFile}" "${PBI_PATCHWRKDIR}/${_tFile}.patch.$$"
 			cp "${PBI_PATCHWRKDIR}/${_tFile}.patch.$$" "${PBI_PATCHWRKDIR}/${_tFile}"
-			rm "${PBI_PATCHWRKDIR}/${_tFile}.patch.$$"
+			rm -f "${PBI_PATCHWRKDIR}/${_tFile}.patch.$$"
 
 			# See if if removing this file leaves any orphan 
 			# hardlinks



More information about the Commits mailing list