ref: refs/heads/SuSE-Code-11-Branch
commit f93521c38fd15b37aaa86536deaaf1a9e04f40e3
Author: Michael Andres
Date: Tue Apr 28 15:44:48 2009 +0200
Fix detection of aria2c binary. (bnc #492071)
---
zypp/media/MediaAria2c.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/zypp/media/MediaAria2c.cc b/zypp/media/MediaAria2c.cc
index 2eacecf..7a78d76 100644
--- a/zypp/media/MediaAria2c.cc
+++ b/zypp/media/MediaAria2c.cc
@@ -623,7 +623,7 @@ Pathname MediaAria2c::whereisAria2c()
if( pos != string::npos )
{
aria2cPathr = ariaResponse;
- string::size_type pose = ariaResponse.find(' ', pos + 1 );
+ string::size_type pose = ariaResponse.find_first_of(" \t\n\r", pos + 1 );
aria2cPathr = ariaResponse.substr( pos , pose - pos );
MIL << "We will use aria2c located here: " << ariaResponse.substr( pos , pose - pos) << endl;
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org