diff options
author | jperkin <jperkin@pkgsrc.org> | 2022-05-08 12:25:18 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2022-05-08 12:25:18 +0000 |
commit | e926d03965727c95bcd481a2b55a09bf82716b16 (patch) | |
tree | ce25a578b1404edc2902b7970353171a982e277d /mk | |
parent | 1847a2651feb5b700841e34688ec232e69a1f28b (diff) | |
download | pkgsrc-e926d03965727c95bcd481a2b55a09bf82716b16.tar.gz |
mk/checksum: Remove distinfo before replacing.
This avoids .nfs* warts when pkgsrc is on NFS.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/checksum/checksum.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/checksum/checksum.mk b/mk/checksum/checksum.mk index 62f378dcb89..52c8903f435 100644 --- a/mk/checksum/checksum.mk +++ b/mk/checksum/checksum.mk @@ -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 @@ distinfo: ${RM} -f $$newfile; \ ${ECHO_MSG} "=> distinfo: unchanged."; \ else \ + ${RM} -f ${DISTINFO_FILE}; \ ${MV} -f $$newfile ${DISTINFO_FILE}; \ fi @@ -100,6 +101,7 @@ makesum: ${RM} -f $$newfile; \ ${ECHO_MSG} "=> distinfo: distfiles part unchanged."; \ else \ + ${RM} -f ${DISTINFO_FILE}; \ ${MV} -f $$newfile ${DISTINFO_FILE}; \ fi @@ -112,6 +114,7 @@ makepatchsum: ${RM} -f $$newfile; \ ${ECHO_MSG} "=> distinfo: patches part unchanged."; \ else \ + ${RM} -f ${DISTINFO_FILE}; \ ${MV} -f $$newfile ${DISTINFO_FILE}; \ fi |