xbps-src: accept subpkgname as target pkg for the install target.
Close #686
This commit is contained in:
parent
61a2b9f4b1
commit
efc17d8c22
1 changed files with 5 additions and 3 deletions
|
@ -69,9 +69,11 @@ install_pkg() {
|
|||
$XBPS_LIBEXECDIR/xbps-src-prepkg.sh $subpkg $cross || exit 1
|
||||
done
|
||||
|
||||
if [ "$XBPS_TARGET_PKG" = "$sourcepkg" ]; then
|
||||
[ "$target" = "install" -o "$target" = "install-destdir" ] && return 0
|
||||
fi
|
||||
for subpkg in ${subpackages} ${sourcepkg}; do
|
||||
if [ "$XBPS_TARGET_PKG" = "${subpkg}" -a "$target" = "install" ]; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
# If install went ok generate the binpkgs.
|
||||
for subpkg in ${subpackages} ${sourcepkg}; do
|
||||
|
|
Loading…
Add table
Reference in a new issue