pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/checksum mk/checksum: Remove distinfo before replac...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/04b59ddd424b
branches:  trunk
changeset: 378870:04b59ddd424b
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Sun May 08 12:25:18 2022 +0000

description:
mk/checksum: Remove distinfo before replacing.

This avoids .nfs* warts when pkgsrc is on NFS.

diffstat:

 mk/checksum/checksum.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 70246ff05a9b -r 04b59ddd424b mk/checksum/checksum.mk
--- a/mk/checksum/checksum.mk   Sun May 08 12:10:40 2022 +0000
+++ b/mk/checksum/checksum.mk   Sun May 08 12:25:18 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: checksum.mk,v 1.25 2021/10/26 09:06:06 nia Exp $
+# $NetBSD: checksum.mk,v 1.26 2022/05/08 12:25:18 jperkin Exp $
 #
 # See bsd.checksum.mk for helpful comments.
 #
@@ -88,6 +88,7 @@
                ${RM} -f $$newfile;                                     \
                ${ECHO_MSG} "=> distinfo: unchanged.";                  \
        else                                                            \
+               ${RM} -f ${DISTINFO_FILE};                              \
                ${MV} -f $$newfile ${DISTINFO_FILE};                    \
        fi
 
@@ -100,6 +101,7 @@
                ${RM} -f $$newfile;                                     \
                ${ECHO_MSG} "=> distinfo: distfiles part unchanged.";   \
        else                                                            \
+               ${RM} -f ${DISTINFO_FILE};                              \
                ${MV} -f $$newfile ${DISTINFO_FILE};                    \
        fi
 
@@ -112,6 +114,7 @@
                ${RM} -f $$newfile;                                     \
                ${ECHO_MSG} "=> distinfo: patches part unchanged.";     \
        else                                                            \
+               ${RM} -f ${DISTINFO_FILE};                              \
                ${MV} -f $$newfile ${DISTINFO_FILE};                    \
        fi
 



Home | Main Index | Thread Index | Old Index