pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Don't bother with error messages when attempting to...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ee37f2bca5cc
branches:  trunk
changeset: 516398:ee37f2bca5cc
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Thu Jul 20 15:42:04 2006 +0000

description:
Don't bother with error messages when attempting to remove the "work"
symlink in the pkgsrc tree in case it's actually a stale work directory.
This gets rid of this error:

===> Cleaning for pkg_install-20060701
rm: work: is a directory
*** Error code 1 (ignored)

diffstat:

 mk/bsd.pkg.clean.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c2d0f1195f1d -r ee37f2bca5cc mk/bsd.pkg.clean.mk
--- a/mk/bsd.pkg.clean.mk       Thu Jul 20 15:13:10 2006 +0000
+++ b/mk/bsd.pkg.clean.mk       Thu Jul 20 15:42:04 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.clean.mk,v 1.4 2006/06/05 22:49:44 jlam Exp $
+# $NetBSD: bsd.pkg.clean.mk,v 1.5 2006/07/20 15:42:04 jlam Exp $
 #
 # This Makefile fragment is included to bsd.pkg.mk and defines the
 # relevant variables and targets for the "clean" phase.
@@ -63,7 +63,7 @@
 .  if defined(WRKOBJDIR)
        -${_PKG_SILENT}${_PKG_DEBUG}                                    \
        ${RMDIR} ${BUILD_DIR} 2>/dev/null;                              \
-       ${RM} -f ${WRKDIR_BASENAME}
+       ${RM} -f ${WRKDIR_BASENAME} 2>/dev/null
 .  endif
 .endif
 



Home | Main Index | Thread Index | Old Index