xbps-src: make -D install work with bootstrap subpkgs.
This commit is contained in:
parent
f6683831cf
commit
fa1c9ab96f
2 changed files with 4 additions and 2 deletions
|
@ -129,8 +129,9 @@ install_src_phase()
|
|||
spkgrev="${subpkg}-${version}"
|
||||
fi
|
||||
check_installed_pkg ${spkgrev}
|
||||
[ $? -eq 0 ] && continue
|
||||
|
||||
if [ $? -eq 0 -a -z "$BOOTSTRAP_PKG_REBUILD" ]; then
|
||||
continue
|
||||
fi
|
||||
msg_normal "'${sourcepkg}-$lver': preparing subpackage '${subpkg}'...\n"
|
||||
if [ ! -f $XBPS_SRCPKGDIR/${sourcepkg}/${subpkg}.template ]; then
|
||||
msg_error "Cannot find '${subpkg}' subpkg build template!\n"
|
||||
|
|
|
@ -108,6 +108,7 @@ install_pkg()
|
|||
# Install pkg into destdir.
|
||||
env xbps_machine=${xbps_machine} MASTERDIR=${_MASTERDIR} \
|
||||
wrksrc=${wrksrc} \
|
||||
BOOTSTRAP_PKG_REBUILD=$BOOTSTRAP_PKG_REBUILD \
|
||||
${fakeroot_cmd} ${fakeroot_cmd_args} \
|
||||
@@XBPS_INSTALL_LIBEXECDIR@@/xbps-src-doinst-helper \
|
||||
${curpkgn} || return $?
|
||||
|
|
Loading…
Reference in a new issue