pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/scripts remove spurious empty line at the top of th...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f90d951a7e4f
branches:  trunk
changeset: 516816:f90d951a7e4f
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Fri Jul 28 18:41:53 2006 +0000

description:
remove spurious empty line at the top of the summary files

diffstat:

 mk/scripts/binpkg-cache |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 1be7c289b2f8 -r f90d951a7e4f mk/scripts/binpkg-cache
--- a/mk/scripts/binpkg-cache   Fri Jul 28 17:40:50 2006 +0000
+++ b/mk/scripts/binpkg-cache   Fri Jul 28 18:41:53 2006 +0000
@@ -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 @@
        # 
        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



Home | Main Index | Thread Index | Old Index