Skip to content

Commit d679d73

Browse files
preserve timestamps on sources copy-in for kiwi and productcompose
1 parent fa72440 commit d679d73

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build-recipe-kiwi

+2-2
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ recipe_setup_kiwi() {
316316
mv "$MYSRCDIR"/* $BUILD_ROOT$TOPDIR/SOURCES/
317317
else
318318
if test -z "$LINKSOURCES" ; then
319-
cp -dLR "$MYSRCDIR"/* $BUILD_ROOT$TOPDIR/SOURCES/ || cleanup_and_exit 1 "source copy failed"
319+
cp -pdLR "$MYSRCDIR"/* $BUILD_ROOT$TOPDIR/SOURCES/ || cleanup_and_exit 1 "source copy failed"
320320
else
321-
cp -lR "$MYSRCDIR"/* $BUILD_ROOT$TOPDIR/SOURCES/ || cleanup_and_exit 1 "source copy failed"
321+
cp -plR "$MYSRCDIR"/* $BUILD_ROOT$TOPDIR/SOURCES/ || cleanup_and_exit 1 "source copy failed"
322322
fi
323323
fi
324324
chown -hR "$ABUILD_UID:$ABUILD_GID" "$BUILD_ROOT$TOPDIR"

build-recipe-productcompose

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ recipe_setup_productcompose() {
3838
mv "$MYSRCDIR"/* $BUILD_ROOT$TOPDIR/SOURCES/
3939
else
4040
if test -z "$LINKSOURCES" ; then
41-
cp -dLR "$MYSRCDIR"/* $BUILD_ROOT$TOPDIR/SOURCES/ || cleanup_and_exit 1 "source copy failed"
41+
cp -pdLR "$MYSRCDIR"/* $BUILD_ROOT$TOPDIR/SOURCES/ || cleanup_and_exit 1 "source copy failed"
4242
else
43-
cp -lR "$MYSRCDIR"/* $BUILD_ROOT$TOPDIR/SOURCES/ || cleanup_and_exit 1 "source copy failed"
43+
cp -plR "$MYSRCDIR"/* $BUILD_ROOT$TOPDIR/SOURCES/ || cleanup_and_exit 1 "source copy failed"
4444
fi
4545
fi
4646
chown -hR "$ABUILD_UID:$ABUILD_GID" "$BUILD_ROOT$TOPDIR"

0 commit comments

Comments
 (0)