xbps-src: for meta-templates always set no{extract,fetch}.
This commit is contained in:
parent
54d75f3f27
commit
f731f08540
2 changed files with 5 additions and 18 deletions
|
@ -40,16 +40,6 @@ extract_distfiles()
|
||||||
#
|
#
|
||||||
[ -n "$pkg" -a -z "$pkgname" ] && return 1
|
[ -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".
|
# If noextract is set, do a "fake extraction".
|
||||||
#
|
#
|
||||||
|
|
|
@ -219,16 +219,13 @@ prepare_tmpl()
|
||||||
{
|
{
|
||||||
local REQ_VARS i found
|
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"
|
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.
|
# Check if required vars weren't set.
|
||||||
for i in ${REQ_VARS}; do
|
for i in ${REQ_VARS}; do
|
||||||
eval val="\$$i"
|
eval val="\$$i"
|
||||||
|
|
Loading…
Reference in a new issue