common/xbps-src/shutils/: add bootstrap repo

This commit is contained in:
classabbyamp 2022-10-10 14:21:06 -04:00 committed by Michael Aldridge
parent 294ef0026f
commit 88df0eba0f
2 changed files with 13 additions and 11 deletions

View file

@ -73,7 +73,7 @@ bulk_build() {
return $? return $?
;; ;;
local) local)
bulk_sortdeps $(xbps-checkvers -f '%n' -i -R "${XBPS_REPOSITORY}" -R "${XBPS_REPOSITORY}/nonfree" -D "$XBPS_DISTDIR") bulk_sortdeps $(xbps-checkvers -f '%n' -i -R "${XBPS_REPOSITORY}/bootstrap" -R "${XBPS_REPOSITORY}" -R "${XBPS_REPOSITORY}/nonfree" -D "$XBPS_DISTDIR")
return $? return $?
;; ;;
esac esac
@ -122,6 +122,6 @@ bulk_update() {
if [ -n "$pkgs" -a "$bulk_update_cmd" == installed ]; then if [ -n "$pkgs" -a "$bulk_update_cmd" == installed ]; then
echo echo
msg_normal "xbps-src: updating your system, confirm to proceed...\n" msg_normal "xbps-src: updating your system, confirm to proceed...\n"
${XBPS_SUCMD} "xbps-install --repository=$XBPS_REPOSITORY --repository=$XBPS_REPOSITORY/nonfree -u ${pkgs//[$'\n']/ }" || return 1 ${XBPS_SUCMD} "xbps-install --repository=$XBPS_REPOSITORY/bootstrap --repository=$XBPS_REPOSITORY --repository=$XBPS_REPOSITORY/nonfree -u ${pkgs//[$'\n']/ }" || return 1
fi fi
} }

View file

@ -214,16 +214,18 @@ chroot_sync_repodata() {
# Update xbps alternative repository if set. # Update xbps alternative repository if set.
mkdir -p $confdir mkdir -p $confdir
if [ -n "$XBPS_ALT_REPOSITORY" ]; then if [ -n "$XBPS_ALT_REPOSITORY" ]; then
( \ cat <<- ! > $confdir/00-repository-alt-local.conf
echo "repository=$hostdir/binpkgs/${XBPS_ALT_REPOSITORY}"; \ repository=$hostdir/binpkgs/${XBPS_ALT_REPOSITORY}/bootstrap
echo "repository=$hostdir/binpkgs/${XBPS_ALT_REPOSITORY}/nonfree"; \ repository=$hostdir/binpkgs/${XBPS_ALT_REPOSITORY}
echo "repository=$hostdir/binpkgs/${XBPS_ALT_REPOSITORY}/debug"; \ repository=$hostdir/binpkgs/${XBPS_ALT_REPOSITORY}/nonfree
) > $confdir/00-repository-alt-local.conf repository=$hostdir/binpkgs/${XBPS_ALT_REPOSITORY}/debug
!
if [ "$XBPS_MACHINE" = "x86_64" ]; then if [ "$XBPS_MACHINE" = "x86_64" ]; then
( \ cat <<- ! >> $confdir/00-repository-alt-local.conf
echo "repository=$hostdir/binpkgs/${XBPS_ALT_REPOSITORY}/multilib"; \ repository=$hostdir/binpkgs/${XBPS_ALT_REPOSITORY}/multilib/bootstrap
echo "repository=$hostdir/binpkgs/${XBPS_ALT_REPOSITORY}/multilib/nonfree"; \ repository=$hostdir/binpkgs/${XBPS_ALT_REPOSITORY}/multilib
) >> $confdir/00-repository-alt-local.conf repository=$hostdir/binpkgs/${XBPS_ALT_REPOSITORY}/multilib/nonfree
!
fi fi
else else
rm -f $confdir/00-repository-alt-local.conf rm -f $confdir/00-repository-alt-local.conf