Source-Changes-HG archive

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

[src/trunk]: src/etc Ignore errors from the rm in snap_pre. RELEASEDIR could ...



details:   https://anonhg.NetBSD.org/src/rev/0d6633de4873
branches:  trunk
changeset: 498405:0d6633de4873
user:      jmc <jmc%NetBSD.org@localhost>
date:      Mon Oct 23 01:50:37 2000 +0000

description:
Ignore errors from the rm in snap_pre. RELEASEDIR could be a mountpoint and
rm complains because it can't actually nuke the mount point. Anything serious
like permissions or I/O errors will get caught in the install's after this
anyways.

diffstat:

 etc/Makefile |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 6932f64e1e3e -r 0d6633de4873 etc/Makefile
--- a/etc/Makefile      Sun Oct 22 22:59:29 2000 +0000
+++ b/etc/Makefile      Mon Oct 23 01:50:37 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.166 2000/10/19 17:53:41 garbled Exp $
+#      $NetBSD: Makefile,v 1.167 2000/10/23 01:50:37 jmc Exp $
 #      from: @(#)Makefile      8.7 (Berkeley) 5/25/95
 
 # Environment variables without default values:
@@ -290,7 +290,8 @@
 # nothing here -- look in the machine-dependent Makefile.inc
 
 snap_pre:
-       /bin/rm -rf ${RELEASEDIR}
+       # Could be a mount point, ignore the errors
+       -/bin/rm -rf ${RELEASEDIR}
        ${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${RELEASEDIR}
 .for dir in ${INSTALLATION_DIRS}
        ${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${RELEASEDIR}/${dir}



Home | Main Index | Thread Index | Old Index