Skip to content

Commit e37cf98

Browse files
committed
fetch: only update FreeBSD repo
This fixes an issue where a fetch fails because a builder (pkgbase) jail contains multiple repo entries (one for FreeBSD and one for pkgbase at least), but the pkgbase repo isn't mounted in the jail.
1 parent 3a37ba8 commit e37cf98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/share/poudriere/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4502,7 +4502,7 @@ download_from_repo() {
45024502
# XXX: rquery is supposed to 'update' but it does not on first run.
45034503
if ! JNETNAME="n" injail env ASSUME_ALWAYS_YES=yes \
45044504
PACKAGESITE="${packagesite:?}" \
4505-
${pkg_bin} update -f; then
4505+
${pkg_bin} update -f -r FreeBSD; then
45064506
msg "Package fetch: Not fetching as remote repository is unavailable."
45074507
rm -f "${missing_pkgs}"
45084508
return 0

0 commit comments

Comments
 (0)