From: Zac Medico Date: Mon, 6 Sep 2010 21:34:55 +0000 (-0700) Subject: Bug #336285 - Add workaround to unpack() in order to prevent unzip X-Git-Tag: v2.2_rc76~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e5a6df64152a14285356b908e95022d0d7dc02a0;p=portage.git Bug #336285 - Add workaround to unpack() in order to prevent unzip from interactively prompting under some error conditions. --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 7c3189ab8..bc4700e0b 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -390,6 +390,9 @@ unpack() { assert_sigpipe_ok "$myfail" ;; ZIP|zip|jar) + # unzip will interactively prompt under some error conditions, + # as reported in bug #336285 + ( while true ; do echo n ; done ) | \ unzip -qo "${srcdir}${x}" || die "$myfail" ;; gz|Z|z)