diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-03-11 23:35:01 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-03-11 23:35:01 +0000 |
commit | 396a20c52cca3ac5d107709ea442918866f10f57 (patch) | |
tree | 7415171018c0b143e4ed1719ee453cc7dc2501b3 | |
parent | e74dddf02d96d4c81771944a18ec7cbb2490f556 (diff) | |
download | portage-396a20c52cca3ac5d107709ea442918866f10f57.tar.gz portage-396a20c52cca3ac5d107709ea442918866f10f57.tar.bz2 portage-396a20c52cca3ac5d107709ea442918866f10f57.zip |
Trust tar exit status and ignore bzip2 exit status as in bug #309001.
svn path=/main/trunk/; revision=15821
-rw-r--r-- | pym/_emerge/BinpkgExtractorAsync.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pym/_emerge/BinpkgExtractorAsync.py b/pym/_emerge/BinpkgExtractorAsync.py index d9416643a..0c6e89196 100644 --- a/pym/_emerge/BinpkgExtractorAsync.py +++ b/pym/_emerge/BinpkgExtractorAsync.py @@ -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))] |