diff options
author | rillig <rillig> | 2006-08-01 07:50:04 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-08-01 07:50:04 +0000 |
commit | 896e1a25b99621637e56ae73798e3f28a45165cc (patch) | |
tree | 9bf0ee1a43843356f207ee561bb08de235cbafbf | |
parent | 20dc47c4fa3404baf589a43521c6cf2c3c78aae7 (diff) | |
download | pkgsrc-896e1a25b99621637e56ae73798e3f28a45165cc.tar.gz |
Always create the files for the lists, even if they would end up empty.
-rw-r--r-- | mk/bulk/sort-packages | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mk/bulk/sort-packages b/mk/bulk/sort-packages index 4fe54851c37..ef6feca4264 100644 --- a/mk/bulk/sort-packages +++ b/mk/bulk/sort-packages @@ -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 @@ vulnerable_packages="${OUTDIR}/vulnerable_packages" 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 @@ for pkg in *${PKG_SUFX}; do # 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" |