mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 21:39:10 +00:00
Ensure that existing packages are not re-released
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
d9de4a09b8
commit
e8099a713c
@ -132,8 +132,17 @@ function sync() {
|
|||||||
|
|
||||||
done
|
done
|
||||||
if [[ ${REPO} == "stable" ]]; then
|
if [[ ${REPO} == "stable" ]]; then
|
||||||
cp ${src}/nvidia-container-runtime*.${pkg_type} ${dst}
|
for f in $(ls ${src}/nvidia-container-runtime*.${pkg_type} ${src}/nvidia-docker*.${pkg_type}); do
|
||||||
cp ${src}/nvidia-docker*.${pkg_type} ${dst}
|
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
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user