Preserve timestamps when copying meta packages

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-04-26 16:43:39 +02:00
parent 22c7178561
commit 2019f1e7ea

View File

@ -95,7 +95,8 @@ if [[ -n ${FORCE_META_PACKAGES} || -z ${NVIDIA_CONTAINER_TOOLKIT_TAG} && "${NVID
${TARGET} ${TARGET}
fi fi
if [[ -n ${package_target} ]]; then if [[ -n ${package_target} ]]; then
cp ${package_pattern} ${DIST_DIR}/${package_target}/ mkdir -p ${DIST_DIR}/${package_target}/
cp -p ${package_pattern} ${DIST_DIR}/${package_target}/
fi fi
# Build nvidia-docker2 if required # Build nvidia-docker2 if required
@ -113,7 +114,8 @@ if [[ -n ${FORCE_META_PACKAGES} || -z ${NVIDIA_CONTAINER_TOOLKIT_TAG} && "${NVID
${TARGET} ${TARGET}
fi fi
if [[ -n ${package_target} ]]; then if [[ -n ${package_target} ]]; then
cp ${package_pattern} ${DIST_DIR}/${package_target}/ mkdir -p ${DIST_DIR}/${package_target}/
cp -p ${package_pattern} ${DIST_DIR}/${package_target}/
fi fi
else else