common: add compatibility code for noarch also for prepkg and doinstall
This commit is contained in:
parent
121b4cfba1
commit
5313faabfd
|
@ -53,6 +53,14 @@ if [ ! -f $XBPS_SUBPKG_INSTALL_DONE ]; then
|
|||
|
||||
${PKGNAME}_package
|
||||
pkgname=$PKGNAME
|
||||
if [ -n "$noarch" ]; then
|
||||
archs=noarch
|
||||
unset noarch
|
||||
fi
|
||||
if [ -n "$only_for_archs" ]; then
|
||||
archs="$only_for_archs"
|
||||
unset only_for_archs
|
||||
fi
|
||||
|
||||
source_file $XBPS_COMMONDIR/environment/build-style/${build_style}.sh
|
||||
|
||||
|
|
|
@ -40,6 +40,14 @@ if [ "$sourcepkg" != "$PKGNAME" ]; then
|
|||
|
||||
${PKGNAME}_package
|
||||
pkgname=$PKGNAME
|
||||
if [ -n "$noarch" ]; then
|
||||
archs=noarch
|
||||
unset noarch
|
||||
fi
|
||||
if [ -n "$only_for_archs" ]; then
|
||||
archs="$only_for_archs"
|
||||
unset only_for_archs
|
||||
fi
|
||||
fi
|
||||
|
||||
source_file $XBPS_COMMONDIR/environment/build-style/${build_style}.sh
|
||||
|
|
Loading…
Reference in New Issue