Bug #336285 - Add workaround to unpack() in order to prevent unzip
authorZac Medico <zmedico@gentoo.org>
Mon, 6 Sep 2010 21:34:55 +0000 (14:34 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 6 Sep 2010 21:34:55 +0000 (14:34 -0700)
from interactively prompting under some error conditions.

bin/ebuild.sh

index 7c3189ab8eeb7bcbac82a726aee0b7a5960142ab..bc4700e0b2323acae7ee8c3b595748319526f8fc 100755 (executable)
@@ -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)