ref: refs/heads/ma-misc
commit a327e34c9bef2f36c8a0732be1c4cdc9bea07302
Author: Ján Kupec
Date: Tue Jul 28 22:59:35 2009 +0200
Don't check for aria2c if not using it.
---
zypp/media/MediaAccess.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/zypp/media/MediaAccess.cc b/zypp/media/MediaAccess.cc
index a76fe4f..8fd21ca 100644
--- a/zypp/media/MediaAccess.cc
+++ b/zypp/media/MediaAccess.cc
@@ -138,14 +138,14 @@ MediaAccess::open (const Url& url, const Pathname & preferred_attach_point)
WAR << "aria2c manually disabled. Falling back to curl" << endl;
use_aria = false;
}
-
+
// disable if it does not exist
- if ( ! MediaAria2c::existsAria2cmd() )
+ if ( use_aria && ! MediaAria2c::existsAria2cmd() )
{
WAR << "aria2c not found. Falling back to curl" << endl;
use_aria = false;
}
-
+
if ( use_aria )
_handler = new MediaAria2c (url,preferred_attach_point);
else
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org