pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/bulk Always create the files for the lists, even if...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0c226dc1787c
branches:  trunk
changeset: 516928:0c226dc1787c
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Aug 01 07:50:04 2006 +0000

description:
Always create the files for the lists, even if they would end up empty.

diffstat:

 mk/bulk/sort-packages |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r 9740fea01915 -r 0c226dc1787c mk/bulk/sort-packages
--- a/mk/bulk/sort-packages     Tue Aug 01 06:10:44 2006 +0000
+++ b/mk/bulk/sort-packages     Tue Aug 01 07:50:04 2006 +0000
@@ -1,5 +1,5 @@
 #! /bin/sh
-# $NetBSD: sort-packages,v 1.2 2006/08/01 06:10:44 rillig Exp $
+# $NetBSD: sort-packages,v 1.3 2006/08/01 07:50:04 rillig Exp $
 
 # This program scans all binary packages in the current directory and
 # creates three lists of files in OUTDIR:
@@ -28,7 +28,9 @@
 newline="
 "
 
-rm -f "${regular_packages}" "${restricted_packages}" "${vulnerable_packages}"
+: > "${regular_packages}"
+: > "${restricted_packages}"
+: > "${vulnerable_packages}"
 
 for pkg in *${PKG_SUFX}; do
        build_info=`${PKG_INFO} -B "${pkg}"`
@@ -36,9 +38,9 @@
        # Note: this code needs to be that complicated because licensing
        # issues are critical to pkgsrc, and we really don't want
        # anything unexpected to happen here. The worst case would be
-       # some file is sorted wrongly because some change in the output
-       # of pkg_info which had not been foreseen. Therefore it is
-       # better to check as strictly as possible to make those
+       # that some file is sorted wrongly because some change in the
+       # output of pkg_info which had not been foreseen. Therefore it
+       # is better to check as strictly as possible to make those
        # changes immediately visible.
 
        no_bin_on_ftp="unknown"



Home | Main Index | Thread Index | Old Index