From 2019f1e7ea9a157cc1e9c9594fadf5b792d4d5ab Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Wed, 26 Apr 2023 16:43:39 +0200 Subject: [PATCH] Preserve timestamps when copying meta packages Signed-off-by: Evan Lezar --- scripts/build-all-components.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/build-all-components.sh b/scripts/build-all-components.sh index 8c51ec9d..a5a698be 100755 --- a/scripts/build-all-components.sh +++ b/scripts/build-all-components.sh @@ -95,7 +95,8 @@ if [[ -n ${FORCE_META_PACKAGES} || -z ${NVIDIA_CONTAINER_TOOLKIT_TAG} && "${NVID ${TARGET} fi 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 # Build nvidia-docker2 if required @@ -113,7 +114,8 @@ if [[ -n ${FORCE_META_PACKAGES} || -z ${NVIDIA_CONTAINER_TOOLKIT_TAG} && "${NVID ${TARGET} fi 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 else