Commit ab59d3b7 authored by Alain Knaff's avatar Alain Knaff Committed by H. Peter Anvin

bzip2/lzma: don't leave empty files around on failure

Impact: Bugfix, silent build failures

Fix a bug in in case of failure, it left an
empty output file behind, messing up the next make.
Signed-off-by: default avatarAlain Knaff <>
Signed-off-by: default avatarH. Peter Anvin <>
parent e4aa7ca5
......@@ -292,7 +292,8 @@ if [ ! -z ${output_file} ]; then
if [ "${is_cpio_compressed}" = "compressed" ]; then
cat ${cpio_tfile} > ${output_file}
cat ${cpio_tfile} | ${compr} - > ${output_file}
(cat ${cpio_tfile} | ${compr} - > ${output_file}) \
|| (rm -f ${output_file} ; false)
[ -z ${cpio_file} ] && rm ${cpio_tfile}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment