Mailinglist Archive: zypp-commit (158 mails)

< Previous Next >
[zypp-commit] <libzypp> master : avoid broken pipe when looking for aria
  • From: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
  • Date: Mon, 2 Mar 2009 18:02:49 +0100
  • Message-id: <E1LeU8U-0006gt-SQ@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 5e66a5237ba615ce9d9f08dc95d070d9447aab6e
Author: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
Date: Mon Mar 2 18:02:49 2009 +0100

avoid broken pipe when looking for aria
---
zypp/media/MediaAria2c.cc | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/zypp/media/MediaAria2c.cc b/zypp/media/MediaAria2c.cc
index 8d00e78..03b0bcb 100644
--- a/zypp/media/MediaAria2c.cc
+++ b/zypp/media/MediaAria2c.cc
@@ -71,6 +71,14 @@ MediaAria2c::existsAria2cmd()
};

ExternalProgram aria(argv, ExternalProgram::Stderr_To_Stdout);
+
+ for(std::string ariaResponse( aria.receiveLine());
+ ariaResponse.length();
+ ariaResponse = aria.receiveLine())
+ {
+ // nothing
+ }
+
return ( aria.close() == 0 );
}

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages