Don't use aria2c for FTP (bnc #641328)
authorJán Kupec <jkupec@suse.cz>
Thu, 7 Oct 2010 07:01:33 +0000 (09:01 +0200)
committerJán Kupec <jkupec@suse.cz>
Thu, 7 Oct 2010 07:01:33 +0000 (09:01 +0200)
zypp/media/MediaAccess.cc

index ff5c96fadc531b6b6c93973aaa62828908f017e5..628b0bb8d8af83b5e147328bcd220016f0cac182 100644 (file)
@@ -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