Permalink
Browse files

pkg_info needs at least one package name. Fixes PR 36940.

  • Loading branch information...
1 parent e545ac3 commit 3492e1f4f99a91d3ee25053186a1dc5b50c13438 rillig committed Sep 7, 2007
Showing with 3 additions and 2 deletions.
  1. +3 −2 mk/bsd.pkg.update.mk
View
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.update.mk,v 1.9 2007/09/06 08:28:01 rillig Exp $
+# $NetBSD: bsd.pkg.update.mk,v 1.10 2007/09/07 10:38:44 rillig Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and contains the targets
# and variables for "make update".
@@ -125,7 +125,8 @@ update-dirlist:
${_DDIR}: ${_DLIST}
- ${RUN} ${PKG_INFO} -Q PKGPATH `${CAT} ${_DLIST}` > ${_DDIR}
+ ${RUN} pkgs=`${CAT _DLIST}`; \
+ if [ "$$pkgs" ]; then ${PKG_INFO} -Q PKGPATH $$pkgs; fi > ${_DDIR}
${_DLIST}: ${WRKDIR}
${_PKG_SILENT}${_PKG_DEBUG} \

0 comments on commit 3492e1f

Please sign in to comment.