Skip to content

Commit

Permalink
Merge pull request ceph#56513 from rosinL/wip-fix-65175
Browse files Browse the repository at this point in the history
install-deps: save and restore user's XDG_CACHE_HOME
  • Loading branch information
Svelar authored Apr 19, 2024
2 parents c46a99d + a173421 commit addad6c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,9 @@ fi
if $for_make_check; then
mkdir -p install-deps-cache
top_srcdir=$(pwd)
if [ -n "$XDG_CACHE_HOME" ]; then
ORIGINAL_XDG_CACHE_HOME=$XDG_CACHE_HOME
fi
export XDG_CACHE_HOME=$top_srcdir/install-deps-cache
wip_wheelhouse=wheelhouse-wip
#
Expand All @@ -551,6 +554,11 @@ if $for_make_check; then
done
rm -rf $top_srcdir/install-deps-python3
rm -rf $XDG_CACHE_HOME
if [ -n "$ORIGINAL_XDG_CACHE_HOME" ]; then
XDG_CACHE_HOME=$ORIGINAL_XDG_CACHE_HOME
else
unset XDG_CACHE_HOME
fi
type git > /dev/null || (echo "Dashboard uses git to pull dependencies." ; false)
fi

Expand Down

0 comments on commit addad6c

Please sign in to comment.