From b7acacb26a380d40d3881681f9e55cbc240d4f59 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Fri, 2 Mar 2018 15:35:05 +0100 Subject: [PATCH] Deb.pm : do not die if the uncompress fails Change-Id: Idbf112c9ca7a4b99e3c42203bf3e08321d05da36 --- Build/Deb.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Build/Deb.pm b/Build/Deb.pm index 7955cf6..3d72088 100644 --- a/Build/Deb.pm +++ b/Build/Deb.pm @@ -196,7 +196,10 @@ sub uncompress { close(TMP); $data = ''; 1 while sysread(TMP2, $data, 1024, length($data)) > 0; - close(TMP2) || die("$tool error\n"); + if (!close(TMP2)) { + warn("$tool error: $?\n"); + return undef; + } return $data; } -- 2.34.1