pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/flavor/pkg Skip blank lines in +REQUIRED_BY files s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/156446feb315
branches:  trunk
changeset: 531900:156446feb315
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Aug 08 16:39:05 2007 +0000

description:
Skip blank lines in +REQUIRED_BY files so that we don't error out trying
to locate the +CONTENTS file for a "blank" package.

Why are there blank lines at all in +REQUIRED_BY?

diffstat:

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

diffs (17 lines):

diff -r 73c487ce35aa -r 156446feb315 mk/flavor/pkg/replace.mk
--- a/mk/flavor/pkg/replace.mk  Wed Aug 08 16:13:46 2007 +0000
+++ b/mk/flavor/pkg/replace.mk  Wed Aug 08 16:39:05 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.13 2007/08/08 11:35:16 tnn Exp $
+# $NetBSD: replace.mk,v 1.14 2007/08/08 16:39:05 jlam Exp $
 #
 
 # _flavor-replace:
@@ -154,6 +154,7 @@
        ${CAT} ${_REQUIRED_BY_FILE} |                                   \
        while read pkg; do                                              \
                case $$pkg in                                           \
+               "")     continue ;;                                     \
                /*)     pkgdir="$$pkg" ;;                               \
                *)      pkgdir="${_PKG_DBDIR}/$$pkg" ;;                 \
                esac;                                                   \



Home | Main Index | Thread Index | Old Index