xbps-src: for meta-templates always set no{extract,fetch}.

This commit is contained in:
Juan RP 2011-07-07 18:07:08 +02:00
parent 54d75f3f27
commit f731f08540
2 changed files with 5 additions and 18 deletions

View file

@ -40,16 +40,6 @@ extract_distfiles()
#
[ -n "$pkg" -a -z "$pkgname" ] && return 1
#
# There's nothing of interest if we are a meta template.
#
[ "$build_style" = "meta-template" ] && return 0
if [ -n "$revision" ]; then
lver="${version}_${revision}"
else
lver="${version}"
fi
#
# If noextract is set, do a "fake extraction".
#

View file

@ -219,16 +219,13 @@ prepare_tmpl()
{
local REQ_VARS i found
#
# There's nothing of interest if we are a meta template.
#
if [ "$build_style" = "meta-template" ]; then
set_tmpl_common_vars
return 0
fi
REQ_VARS="pkgname version build_style short_desc long_desc"
if [ "$build_style" = "meta-template" ]; then
nofetch=yes
noextract=yes
fi
# Check if required vars weren't set.
for i in ${REQ_VARS}; do
eval val="\$$i"