diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-07-17 21:07:06 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-07-18 10:02:26 +0200 |
commit | ec2b023f4b5207eec76f711d8d8e5fe2854fee6c (patch) | |
tree | d84f91283360935bd27c921b363cf56829c25d6f /scripts | |
parent | d14250b9cd24dd97978eaf904331b74f33831830 (diff) | |
download | ptxdist-ec2b023f4b5207eec76f711d8d8e5fe2854fee6c.tar.gz ptxdist-ec2b023f4b5207eec76f711d8d8e5fe2854fee6c.tar.xz |
generate predictable timestamps
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_make_image_prepare_work_dir.sh | 5 | ||||
-rw-r--r-- | scripts/lib/ptxd_make_xpkg_pkg.sh | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_make_image_prepare_work_dir.sh b/scripts/lib/ptxd_make_image_prepare_work_dir.sh index 369993bad..8abfb11dd 100644 --- a/scripts/lib/ptxd_make_image_prepare_work_dir.sh +++ b/scripts/lib/ptxd_make_image_prepare_work_dir.sh @@ -25,6 +25,7 @@ ptxd_make_image_extract_xpkg_files() { local src="/etc/ipkg.conf" local xpkg_conf="${PTXDIST_TEMPDIR}/${FUNCNAME}_xpkg.conf" local work_dir="$1" + local timestamp="${PTXDIST_VERSION_YEAR}${PTXDIST_VERSION_MONTH}010000" local -a list ptxd_reply if ptxd_get_ptxconf "PTXCONF_HOST_PACKAGE_MANAGEMENT_OPKG" > /dev/null; then echo "option force_postinstall 1" > "${xpkg_conf}" @@ -62,7 +63,9 @@ ${list[*]} DESTDIR="${work_dir}" \ ${ptx_xpkg_type}-cl -f "${xpkg_conf}" -o "${work_dir}" \ - install "${ptxd_reply_ipkg_files[@]}" + install "${ptxd_reply_ipkg_files[@]}" && + + find "${work_dir}" -print0 | xargs -0 touch --no-dereference -c -t "${timestamp}" } export -f ptxd_make_image_extract_xpkg_files diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh index 9362cb942..58245c9b4 100644 --- a/scripts/lib/ptxd_make_xpkg_pkg.sh +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh @@ -782,7 +782,10 @@ ptxd_make_xpkg_pkg() { local pkg_xpkg_tmp="$1" local pkg_xpkg_cmds="$2" local pkg_xpkg_perms="$3" + local timestamp="${PTXDIST_VERSION_YEAR}${PTXDIST_VERSION_MONTH}010000" - . "${pkg_xpkg_cmds}" + . "${pkg_xpkg_cmds}" && + + find "${pkg_xpkg_tmp}" -print0 | xargs -0 touch --no-dereference -c -t "${timestamp}" } export -f ptxd_make_xpkg_pkg |