diff options
author | spz <spz> | 2010-03-13 11:45:16 +0000 |
---|---|---|
committer | spz <spz> | 2010-03-13 11:45:16 +0000 |
commit | 3cdbf95f1ff714d58124d32d1d618e8db96ace51 (patch) | |
tree | bc2bb4d2b2affb321bd090f15579f801e6fb9ccf /mk | |
parent | 43c21c4a4d5dec6507d503b77380e5992aa28a2d (diff) | |
download | pkgsrc-3cdbf95f1ff714d58124d32d1d618e8db96ace51.tar.gz |
fix file permission != directory permission problem for the pkg_summary.bz2
Diffstat (limited to 'mk')
-rwxr-xr-x | mk/scripts/binpkg-cache | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/scripts/binpkg-cache b/mk/scripts/binpkg-cache index 5fab4008066..a594507d796 100755 --- a/mk/scripts/binpkg-cache +++ b/mk/scripts/binpkg-cache @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: binpkg-cache,v 1.19 2010/03/12 20:19:15 spz Exp $ +# $NetBSD: binpkg-cache,v 1.20 2010/03/13 11:45:16 spz Exp $ # # Script for generating a cache file with information about # all binary packages contained in a directory. @@ -266,6 +266,7 @@ process_binpkg_dir(){ fi # if it's there, update it, otherwise don't bother if test -f ${d}/${summaryfile}.bz2 ; then + rm -f ${d}/${summaryfile}.bz2 cat ${tmpd}/${summaryfile} | ${BZIP2} > ${d}/${summaryfile}.bz2 if test $? -ne 0 ; then echo "********** WARNING **********" |