diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-07-13 11:46:21 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-07-13 11:50:02 +0200 |
commit | 4df49de48a3082fd397f17a8878fb5e87ab763f8 (patch) | |
tree | 0467cb416ce320472643034297e2e18ddbfee714 /scripts | |
parent | 815c24d3b7835d8b16b5dfdbfca109416a75bb65 (diff) | |
download | ptxdist-4df49de48a3082fd397f17a8878fb5e87ab763f8.tar.gz ptxdist-4df49de48a3082fd397f17a8878fb5e87ab763f8.tar.xz |
ptxd_make_image_extract_xpkg_files: use unique config file name
This may be called multiple times in parallel when building with '-j'. Use
a random config file name to avoid collisions.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_image_prepare_work_dir.sh b/scripts/lib/ptxd_make_image_prepare_work_dir.sh index 570cb7f89..6468b7eaf 100644 --- a/scripts/lib/ptxd_make_image_prepare_work_dir.sh +++ b/scripts/lib/ptxd_make_image_prepare_work_dir.sh @@ -23,7 +23,7 @@ ptxd_make_image_extract_xpkg_files() { # FIXME: consolidate "ptxd_install_setup_src" local src="/etc/opkg/opkg.conf" - local xpkg_conf="${PTXDIST_TEMPDIR}/${FUNCNAME}_xpkg.conf" + local xpkg_conf="$(mktemp ${PTXDIST_TEMPDIR}/XXXXXXXXXX_xpkg.conf)" local work_dir="$1" local -a list ptxd_reply echo "option force_postinstall 1" > "${xpkg_conf}" |