summaryrefslogtreecommitdiff
path: root/mk/scripts
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2006-07-28 18:41:53 +0000
committerdmcmahill <dmcmahill>2006-07-28 18:41:53 +0000
commit768210d0c611d5740106fb1ec3f49b425fe555a4 (patch)
treefcd72604d628d6197ca50a18c84d4d877f207233 /mk/scripts
parent25727f6383ab010d25a432ec1822e057c615fc08 (diff)
downloadpkgsrc-768210d0c611d5740106fb1ec3f49b425fe555a4.tar.gz
remove spurious empty line at the top of the summary files
Diffstat (limited to 'mk/scripts')
-rwxr-xr-xmk/scripts/binpkg-cache5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/scripts/binpkg-cache b/mk/scripts/binpkg-cache
index 4b10400b0d5..2c4e6589211 100755
--- a/mk/scripts/binpkg-cache
+++ b/mk/scripts/binpkg-cache
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: binpkg-cache,v 1.11 2006/07/28 02:41:07 dmcmahill Exp $
+# $NetBSD: binpkg-cache,v 1.12 2006/07/28 18:41:53 dmcmahill Exp $
#
# Script for generating a cache file with information about
# all binary packages contained in a directory.
@@ -215,7 +215,8 @@ process_binpkg_dir(){
#
if test "X${need_update}" = "Xyes" ; then
echo "pkgcache_version ${cacheversion}" > ${tmpd}/${cachefile}
- echo "" > ${tmpd}/${summaryfile}
+ rm -f ${tmpd}/${summaryfile}
+ touch ${tmpd}/${summaryfile}
for f in ${d}/*${PKG_SUFX} ; do
fn=`grep "^${d} " ${all_dirs} | ${AWK} '{print $2}'`"/"`basename ${f}`
if test "X${DEBUG}" = "Xyes" ; then