xbps-src: setup main pkg in setup_subpkg_tmpl() if it's not a subpkg.

This commit is contained in:
Juan RP 2011-07-14 12:47:16 +02:00
parent 6058498069
commit 47025ec4c6

View File

@ -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
}