diff options
author | reinoud <reinoud@pkgsrc.org> | 2011-08-04 14:39:33 +0000 |
---|---|---|
committer | reinoud <reinoud@pkgsrc.org> | 2011-08-04 14:39:33 +0000 |
commit | a97921fb416bcbcdda17b58c8a144e0a79ea53fa (patch) | |
tree | 8d5d1ed14a9ba588b9191c22e731f201820a5b91 /mk | |
parent | 7313a4513b947ae43ead4e962a44ef2bc981d605 (diff) | |
download | pkgsrc-a97921fb416bcbcdda17b58c8a144e0a79ea53fa.tar.gz |
Fix logic in sort-packages. With the former revision the logic got crippled
and no packages were selected as `regular' and thus nothing was selected.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bulk/sort-packages | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mk/bulk/sort-packages b/mk/bulk/sort-packages index 2312dc5cc02..0b22474455b 100644 --- a/mk/bulk/sort-packages +++ b/mk/bulk/sort-packages @@ -1,5 +1,5 @@ #! /bin/sh -# $NetBSD: sort-packages,v 1.15 2010/04/10 21:44:44 wiz Exp $ +# $NetBSD: sort-packages,v 1.16 2011/08/04 14:39:33 reinoud Exp $ # This program scans all binary packages in the current directory and # creates two lists of files in OUTDIR: @@ -58,10 +58,13 @@ for pkg in *${PKG_SUFX}; do ;; esac - if [ "${restricted}" != "unknown" ] && [ "${no_bin_on_ftp}" != "unknown" ]; then - category="restricted" + category="unknown" + if [ "${restricted}" = "no" ] && [ "${no_bin_on_ftp}" = "no" ]; then + category="regular" else - category="unknown" + if [ "${restricted}" = "yes" ] || [ "${no_bin_on_ftp}" = "yes" ]; then + category="restricted" + fi fi : echo "upload> ${pkg} is ${category}." |