aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-02-12 08:41:29 +0000
committerZac Medico <zmedico@gentoo.org>2010-02-12 08:41:29 +0000
commit3b1ad6f8182b02967444e01995c0433617c59eb9 (patch)
tree35be61651b33e2b0af65d3586fa7a62bb43f0db7 /pym/_emerge/BinpkgExtractorAsync.py
parentRemove unnecessary newline in dblink._eerror message. (diff)
downloadportage-3b1ad6f8182b02967444e01995c0433617c59eb9.tar.gz
portage-3b1ad6f8182b02967444e01995c0433617c59eb9.tar.bz2
portage-3b1ad6f8182b02967444e01995c0433617c59eb9.zip
Logg errors that occur during binpkg extraction.
svn path=/main/trunk/; revision=15343
Diffstat (limited to 'pym/_emerge/BinpkgExtractorAsync.py')
-rw-r--r--pym/_emerge/BinpkgExtractorAsync.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pym/_emerge/BinpkgExtractorAsync.py b/pym/_emerge/BinpkgExtractorAsync.py
index ae9e7a58b..9e799443d 100644
--- a/pym/_emerge/BinpkgExtractorAsync.py
+++ b/pym/_emerge/BinpkgExtractorAsync.py
@@ -18,7 +18,13 @@ class BinpkgExtractorAsync(SpawnProcess):
def _start(self):
self.args = [self._shell_binary, "-c",
- "bzip2 -dqc -- %s | tar -xp -C %s -f -" % \
+ ("bzip2 -dqc -- %s | tar -xp -C %s -f - ; " + \
+ "p=(${PIPESTATUS[@]}) ; " + \
+ "if [ ${p[0]} != 0 ] ; then " + \
+ "echo bzip2 failed with status ${p[0]} ; exit ${p[0]} ; fi ; " + \
+ "if [ ${p[1]} != 0 ] ; then " + \
+ "echo tar failed with status ${p[1]} ; exit ${p[1]} ; fi ; " + \
+ "exit 0 ;") % \
(portage._shell_quote(self.pkg_path),
portage._shell_quote(self.image_dir))]