summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-08-01 07:50:04 +0000
committerrillig <rillig@pkgsrc.org>2006-08-01 07:50:04 +0000
commitaeeeee3d469a207051c9d352b9efb7152bc96ee8 (patch)
tree9bf0ee1a43843356f207ee561bb08de235cbafbf /mk
parent9aefe26fce9e330f05be81a311d43d231132025e (diff)
downloadpkgsrc-aeeeee3d469a207051c9d352b9efb7152bc96ee8.tar.gz
Always create the files for the lists, even if they would end up empty.
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/sort-packages12
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"