[Build] don't install rsync if vcache is disabled #14407

Why I did it
We don't need to install rsync in every docker container if vcache is disabled.

How I did it
Install rsync in pre_run_buildinfo script only if vcache is enabled.

How to verify it
This commit is contained in:
Konstantin Vasin 2023-03-29 02:10:29 +03:00 committed by GitHub
parent 320366ab60
commit 80d30daf88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,8 @@ if [ "$ENABLE_VERSION_CONTROL_DEB" == "y" ] && [ -f $VERSION_DEB_PREFERENCE ]; t
cp -f $VERSION_DEB_PREFERENCE /etc/apt/preferences.d/
fi
DISTRO=${DISTRO} apt-get update && apt-get install -y rsync
if [ ! -z "$(get_version_cache_option)" ]; then
DISTRO=${DISTRO} apt-get update && apt-get install -y rsync
fi
exit 0