Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryan Drewery <bryan@shatow.net>2021-08-19 21:55:35 +0300
committerBryan Drewery <bryan@shatow.net>2021-08-19 22:37:09 +0300
commit3b1e5af4b74412afd61b116843919e43d183dfb4 (patch)
tree3a6d6833bd292e6d7393e7678b4bd5cce33cd714 /src
parent214945775d7ea6257591177720dcec993219e754 (diff)
download_from_repo: Don't error if fetching a wrong PKG_SUFX
Diffstat (limited to 'src')
-rw-r--r--src/share/poudriere/common.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/share/poudriere/common.sh b/src/share/poudriere/common.sh
index b38a6354..0228e70d 100644
--- a/src/share/poudriere/common.sh
+++ b/src/share/poudriere/common.sh
@@ -3546,8 +3546,12 @@ download_from_repo() {
JNETNAME="n" injail xargs \
env ASSUME_ALWAYS_YES=yes \
${pkg_bin} fetch -U < "${wantedpkgs}"
+
while mapfile_read_loop "${wantedpkgs}" pkgname; do
- # XXX: Remote PKG_SUFX may differ
+ if [ ! -e "${PACKAGES_PKG_CACHE}/${pkgname}.${PKG_EXT}" ]; then
+ msg_warn "${COLOR_PORT}${pkgname}.${PKG_EXT}${COLOR_RESET} not found. Remote PKG_SUFX likely differs temporarily"
+ continue
+ fi
echo "${pkgname}.${PKG_EXT}"
done | (
local packages_rel