projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e24f6d9
)
Don't use aria2c for FTP (bnc #641328)
author
Ján Kupec
<jkupec@suse.cz>
Thu, 7 Oct 2010 07:01:33 +0000
(09:01 +0200)
committer
Ján Kupec
<jkupec@suse.cz>
Thu, 7 Oct 2010 07:01:33 +0000
(09:01 +0200)
zypp/media/MediaAccess.cc
patch
|
blob
|
history
diff --git
a/zypp/media/MediaAccess.cc
b/zypp/media/MediaAccess.cc
index ff5c96fadc531b6b6c93973aaa62828908f017e5..628b0bb8d8af83b5e147328bcd220016f0cac182 100644
(file)
--- a/
zypp/media/MediaAccess.cc
+++ b/
zypp/media/MediaAccess.cc
@@
-159,8
+159,14
@@
MediaAccess::open (const Url& o_url, const Pathname & preferred_attach_point)
}
else if ( !use_aria && ariaenv && ( strcmp(ariaenv, "1" ) == 0 ) )
{
- WAR << "aria2c manually enabled." << endl;
- use_aria = true;
+ // no aria for ftp - no advantage in that over curl
+ if ( url.getScheme() == "ftp" )
+ WAR << "no aria2c for FTP, despite ZYPP_ARIA2C=1" << endl;
+ else
+ {
+ WAR << "aria2c manually enabled." << endl;
+ use_aria = true;
+ }
}
// disable if it does not exist