pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/flavor/pkg PKGVIEWS is never supposed to be empty, ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2e222bce983a
branches:  trunk
changeset: 523305:2e222bce983a
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Jan 05 18:52:08 2007 +0000

description:
PKGVIEWS is never supposed to be empty, so it does not need the
empty-for-loop-protection. Furthermore, "" is used as a regular,
meaningful value.

diffstat:

 mk/flavor/pkg/views.mk |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r d2b2dd479bd9 -r 2e222bce983a mk/flavor/pkg/views.mk
--- a/mk/flavor/pkg/views.mk    Fri Jan 05 18:33:15 2007 +0000
+++ b/mk/flavor/pkg/views.mk    Fri Jan 05 18:52:08 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: views.mk,v 1.4 2006/06/08 08:01:53 rillig Exp $
+# $NetBSD: views.mk,v 1.5 2007/01/05 18:52:08 rillig Exp $
 
 # By default, all packages attempt to link into the views.
 .if ${PKG_INSTALLATION_TYPE} == "pkgviews"
@@ -38,8 +38,7 @@
 su-build-views:
        ${_PKG_SILENT}${_PKG_DEBUG}                                     \
        ${MKDIR} ${LOCALBASE};                                          \
-       for v in "" ${PKGVIEWS}; do                                     \
-               ${TEST} -n "$$v" || continue;                           \
+       for v in ${PKGVIEWS}; do                                        \
                case "$$v" in                                           \
                "")     dbdir=${PKG_DBDIR}; viewname=standard ;;        \
                *)      dbdir=${LOCALBASE}/$$v/.dbdir; viewname=$$v ;;  \



Home | Main Index | Thread Index | Old Index