summaryrefslogtreecommitdiff
path: root/mk/scripts
diff options
context:
space:
mode:
authorspz <spz@pkgsrc.org>2010-03-13 11:45:16 +0000
committerspz <spz@pkgsrc.org>2010-03-13 11:45:16 +0000
commite5b95e154fea2c548ecd706245756b0d152fca35 (patch)
treebc2bb4d2b2affb321bd090f15579f801e6fb9ccf /mk/scripts
parent666b4f0a7797e960f3d50656e56701b695b572c7 (diff)
downloadpkgsrc-e5b95e154fea2c548ecd706245756b0d152fca35.tar.gz
fix file permission != directory permission problem for the pkg_summary.bz2
Diffstat (limited to 'mk/scripts')
-rwxr-xr-xmk/scripts/binpkg-cache3
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 **********"