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}"
|
spkgrev="${subpkg}-${version}"
|
||||||
fi
|
fi
|
||||||
check_installed_pkg ${spkgrev}
|
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"
|
msg_normal "'${sourcepkg}-$lver': preparing subpackage '${subpkg}'...\n"
|
||||||
if [ ! -f $XBPS_SRCPKGDIR/${sourcepkg}/${subpkg}.template ]; then
|
if [ ! -f $XBPS_SRCPKGDIR/${sourcepkg}/${subpkg}.template ]; then
|
||||||
msg_error "Cannot find '${subpkg}' subpkg build template!\n"
|
msg_error "Cannot find '${subpkg}' subpkg build template!\n"
|
||||||
|
|
|
@ -108,6 +108,7 @@ install_pkg()
|
||||||
# Install pkg into destdir.
|
# Install pkg into destdir.
|
||||||
env xbps_machine=${xbps_machine} MASTERDIR=${_MASTERDIR} \
|
env xbps_machine=${xbps_machine} MASTERDIR=${_MASTERDIR} \
|
||||||
wrksrc=${wrksrc} \
|
wrksrc=${wrksrc} \
|
||||||
|
BOOTSTRAP_PKG_REBUILD=$BOOTSTRAP_PKG_REBUILD \
|
||||||
${fakeroot_cmd} ${fakeroot_cmd_args} \
|
${fakeroot_cmd} ${fakeroot_cmd_args} \
|
||||||
@@XBPS_INSTALL_LIBEXECDIR@@/xbps-src-doinst-helper \
|
@@XBPS_INSTALL_LIBEXECDIR@@/xbps-src-doinst-helper \
|
||||||
${curpkgn} || return $?
|
${curpkgn} || return $?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue