unpack: handle echo failure in unzip pipe
authorZac Medico <zmedico@gentoo.org>
Wed, 29 Dec 2010 18:51:28 +0000 (10:51 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 31 Dec 2010 06:17:19 +0000 (22:17 -0800)
This will fix bug #338744.

bin/ebuild.sh

index e88f0158dfbfc3da2e6854a438becad4bf173cab..8e58b86d5e5aba5662e58155cde5e06aa26d919d 100755 (executable)
@@ -387,7 +387,7 @@ unpack() {
                        ZIP|zip|jar)
                                # unzip will interactively prompt under some error conditions,
                                # as reported in bug #336285
-                               ( while true ; do echo n ; done ) | \
+                               ( while true ; do echo n || break ; done ) | \
                                unzip -qo "${srcdir}${x}" || die "$myfail"
                                ;;
                        gz|Z|z)