mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 05:21:33 +00:00
Skip packages that already exist
For rc releases we allow nvidia-container-toolkit versions to not match libnvidia-container versions. This change ensures that only changed packages are released. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
a0e728b5c8
commit
18eb3c7c38
@ -116,8 +116,19 @@ function sync() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
mkdir -p ${dst}
|
mkdir -p ${dst}
|
||||||
cp ${src}/libnvidia-container*.${pkg_type} ${dst}
|
|
||||||
cp ${src}/nvidia-container-toolkit*.${pkg_type} ${dst}
|
for f in $(ls ${src}/libnvidia-container*.${pkg_type} ${src}/nvidia-container-toolkit*.${pkg_type}); do
|
||||||
|
df=${dst}/$(basename ${f})
|
||||||
|
df_stable=${df//"/experimental/"/"/stable/"}
|
||||||
|
if [[ -f "${df}" ]]; then
|
||||||
|
echo "${df} already exists; skipping"
|
||||||
|
elif [[ ${REPO} == "experimental" && -f ${df_stable} ]]; then
|
||||||
|
echo "${df_stable} already exists; skipping"
|
||||||
|
else
|
||||||
|
cp ${f} ${df}
|
||||||
|
fi
|
||||||
|
|
||||||
|
done
|
||||||
if [[ ${REPO} == "stable" ]]; then
|
if [[ ${REPO} == "stable" ]]; then
|
||||||
cp ${src}/nvidia-container-runtime*.${pkg_type} ${dst}
|
cp ${src}/nvidia-container-runtime*.${pkg_type} ${dst}
|
||||||
cp ${src}/nvidia-docker*.${pkg_type} ${dst}
|
cp ${src}/nvidia-docker*.${pkg_type} ${dst}
|
||||||
|
Loading…
Reference in New Issue
Block a user