diff options
author | Bryan Drewery <bryan@shatow.net> | 2021-10-26 06:24:19 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2021-10-26 06:24:19 +0300 |
commit | 7a7152ce2d5a8081abd94ae9c773b6779c02c763 (patch) | |
tree | 005efc43c415d2f77b5f742da5d32208bdad41a6 /src/share | |
parent | 8d5a12b08c9240261c3f797959d210037206966e (diff) |
Package fetch: Give an indication which packages are taken from cache
Diffstat (limited to 'src/share')
-rw-r--r-- | src/share/poudriere/common.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/share/poudriere/common.sh b/src/share/poudriere/common.sh index 5654273b..bfa47bc9 100644 --- a/src/share/poudriere/common.sh +++ b/src/share/poudriere/common.sh @@ -3742,6 +3742,9 @@ download_from_repo() { sed -e "s,\$,.${PKG_EXT}," | xargs -J % ln -fL % "${packages_rel}/All/" ) + while mapfile_read_loop "${MASTER_DATADIR}/pkg_fetch" pkgname; do + msg "Package fetch: Using cached copy of ${COLOR_PORT}${pkgname}${COLOR_RESET}" + done umountfs "${MASTERMNT}/var/cache/pkg" rm -f "${wantedpkgs}" # Bootstrapped. Need to setup symlinks. @@ -7845,7 +7848,7 @@ prepare_ports() { "${pkgname}"; then continue fi - msg "(-C) Will delete existing package: ${pkg##*/}" + msg "(-C) Will delete existing package: ${COLOR_PORT}${pkg##*/}${COLOR_RESET}" delete_pkg_xargs "${delete_pkg_list}" \ "${pkg}" if [ -L "${pkg%.*}.txz" ]; then |