summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2016-07-06 07:58:30 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-07-06 07:58:30 +0200
commitb81f55cacee62c80ff15c7ecd381550d4354cd78 (patch)
treef21e30d8a84286da75f19897b2ea39ed8661c2ae
parent03d1ee5b50ad97e8953d40b93a1081d546a701e3 (diff)
downloadptxdist-b81f55cacee62c80ff15c7ecd381550d4354cd78.tar.gz
ptxd_install_fixup_timestamps: use UTC to fix timestamps
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--scripts/lib/ptxd_make_xpkg_pkg.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh
index efee9e7..ba9094b 100644
--- a/scripts/lib/ptxd_make_xpkg_pkg.sh
+++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
@@ -831,13 +831,13 @@ executing '${pkg_label}.${1}'
export -f ptxd_install_run
ptxd_install_fixup_timestamps() {
- local timestamp="${PTXDIST_VERSION_YEAR}${PTXDIST_VERSION_MONTH}010000"
+ local timestamp="${PTXDIST_VERSION_YEAR}-${PTXDIST_VERSION_MONTH}-01 UTC"
local touch_args
if touch --help | grep -q -- --no-dereference &> /dev/null; then
touch_args="--no-dereference"
fi
- find "${1}" -print0 | xargs -0 touch ${touch_args} -c -t "${timestamp}"
+ find "${1}" -print0 | xargs -0 touch ${touch_args} -c -d "${timestamp}"
}
export -f ptxd_install_fixup_timestamps