From: Michael Schroeder Date: Fri, 2 Mar 2018 14:35:05 +0000 (+0100) Subject: Deb.pm : do not die if the uncompress fails X-Git-Tag: submit/devel/20190730.074441~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F80%2F197880%2F1;p=tools%2Fbuild.git Deb.pm : do not die if the uncompress fails Change-Id: Idbf112c9ca7a4b99e3c42203bf3e08321d05da36 --- 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; }