aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-06 14:34:55 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-06 14:34:55 -0700
commite5a6df64152a14285356b908e95022d0d7dc02a0 (patch)
treec9d14c544a05805353bff054f993277c893c32fb /bin
parentAdd an optional herdstree parameter to the MetaDataXML constructor, (diff)
downloadportage-e5a6df64152a14285356b908e95022d0d7dc02a0.tar.gz
portage-e5a6df64152a14285356b908e95022d0d7dc02a0.tar.bz2
portage-e5a6df64152a14285356b908e95022d0d7dc02a0.zip
Bug #336285 - Add workaround to unpack() in order to prevent unzip
from interactively prompting under some error conditions.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh3
1 files changed, 3 insertions, 0 deletions
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)