diff options
author | spz <spz@pkgsrc.org> | 2010-03-13 11:45:16 +0000 |
---|---|---|
committer | spz <spz@pkgsrc.org> | 2010-03-13 11:45:16 +0000 |
commit | d408461ca59654f1937db144e438ee9030f6159c (patch) | |
tree | bc2bb4d2b2affb321bd090f15579f801e6fb9ccf /mk/scripts | |
parent | 82ed645870105a30d19340292450c13d556104a0 (diff) | |
download | pkgsrc-d408461ca59654f1937db144e438ee9030f6159c.tar.gz |
fix file permission != directory permission problem for the pkg_summary.bz2
Diffstat (limited to 'mk/scripts')
-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 **********" |