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 | 1199feefcaa4512605ceaa8e5e18a6dee93b7486 (patch) | |
tree | 8d5d1ed14a9ba588b9191c22e731f201820a5b91 | |
parent | dd35a020c42cb066e2fdbbb588c0f889b217e34f (diff) | |
download | pkgsrc-1199feefcaa4512605ceaa8e5e18a6dee93b7486.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.
-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}." |