shutils/metadata.sh: fix multiple inclusion of subpkg templates.
--HG-- extra : convert_revision : 2a1d8c9996d1790817c672e66293be3b63480768
This commit is contained in:
parent
16808930aa
commit
ff49f2b52a
1 changed files with 4 additions and 5 deletions
|
@ -46,19 +46,18 @@ xbps_write_metadata_pkg()
|
|||
else
|
||||
spkgrev="${subpkg}-${version}"
|
||||
fi
|
||||
unset run_depends conf_files noarch triggers replaces \
|
||||
revision openrc_services essential keep_empty_dirs
|
||||
check_installed_pkg ${spkgrev}
|
||||
[ $? -eq 0 ] && continue
|
||||
|
||||
if [ ! -f $XBPS_SRCPKGDIR/${sourcepkg}/${subpkg}.template ]; then
|
||||
msg_error "Cannot find subpackage build template!"
|
||||
msg_error "Cannot find subpkg '${subpkg}' build template!"
|
||||
fi
|
||||
unset run_depends conf_files noarch triggers replaces \
|
||||
revision openrc_services essential keep_empty_dirs
|
||||
. $XBPS_SRCPKGDIR/${sourcepkg}/${subpkg}.template
|
||||
pkgname=${subpkg}
|
||||
set_tmpl_common_vars
|
||||
xbps_write_metadata_pkg_real
|
||||
run_template ${sourcepkg}
|
||||
setup_tmpl ${sourcepkg}
|
||||
done
|
||||
|
||||
if [ "$build_style" = "meta-template" -a -z "${run_depends}" ]; then
|
||||
|
|
Loading…
Reference in a new issue