Skip to content

Commit

Permalink
Merge pull request #3520 from citrus-it/mirror
Browse files Browse the repository at this point in the history
Use mirror when populating sysroots
  • Loading branch information
hadfl authored Mar 24, 2024
2 parents 76f833b + 517b858 commit 890a98e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ else
[$NATIVE_ARCH]=$IPS_REPO
[aarch64]=https://pkg.omnios.org/bloody/braich
)
IPS_MIRRORS=(
[aarch64]=https://us-west.mirror.omnios.org/bloody/braich
)
fi

ARCHIVE_TYPES="tar.zst tar.xz tar.bz2 tar.lz tar.gz tgz tar zip"
Expand Down
4 changes: 4 additions & 0 deletions lib/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,10 @@ init_sysroot() {
aarch64)
logcmd $PKGCLIENT -R $tmpsysroot set-publisher \
-g ${IPS_REPOS[$arch]} $PKGPUBLISHER
if [ -n "${IPS_MIRRORS[$arch]}" ]; then
logcmd $PKGCLIENT -R $tmpsysroot set-publisher \
-m ${IPS_MIRRORS[$arch]} $PKGPUBLISHER
fi
logcmd -p $PKGCLIENT -R $tmpsysroot install '*'
logcmd cp /etc/zones/SUNWdefault.xml $tmpsysroot/etc/zones/
;;
Expand Down

0 comments on commit 890a98e

Please sign in to comment.