From 47025ec4c669c3d28a2b0b50dd02f728cc122ce7 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 14 Jul 2011 12:47:16 +0200 Subject: [PATCH] xbps-src: setup main pkg in setup_subpkg_tmpl() if it's not a subpkg. --- xbps-src/shutils/tmpl_funcs.sh.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xbps-src/shutils/tmpl_funcs.sh.in b/xbps-src/shutils/tmpl_funcs.sh.in index 7b22137478..fe4ad7e8cf 100644 --- a/xbps-src/shutils/tmpl_funcs.sh.in +++ b/xbps-src/shutils/tmpl_funcs.sh.in @@ -146,7 +146,7 @@ setup_subpkg_tmpl() if [ -r "$XBPS_SRCPKGDIR/$1/$1.template" ]; then setup_tmpl $1 - unset run_depends + unset run_depends build_depends . $XBPS_SRCPKGDIR/$1/$1.template for f in ${subpackages}; do if [ "$subpkg" = "$1" ]; then @@ -155,6 +155,8 @@ setup_subpkg_tmpl() break fi done + else + setup_tmpl $1 fi }