Trust tar exit status and ignore bzip2 exit status as in bug #309001.
authorZac Medico <zmedico@gentoo.org>
Thu, 11 Mar 2010 23:35:01 +0000 (23:35 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 11 Mar 2010 23:35:01 +0000 (23:35 -0000)
svn path=/main/trunk/; revision=15821

pym/_emerge/BinpkgExtractorAsync.py

index d9416643a2f2a81aff54cc8d1f73120f64fb6344..0c6e89196f07ea692135efc7d66bec1fa9ddbdb3 100644 (file)
@@ -14,13 +14,7 @@ class BinpkgExtractorAsync(SpawnProcess):
 
        def _start(self):
                self.args = [self._shell_binary, "-c",
-                       ("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 ;") % \
+                       ("bzip2 -dqc -- %s | tar -xp -C %s -f -") % \
                        (portage._shell_quote(self.pkg_path),
                        portage._shell_quote(self.image_dir))]