]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire.cc
Update French manpage translation
[apt.git] / apt-pkg / acquire.cc
index 80c2fee0f19b2feee5575a7f62e2568afaee9fc0..daea234d3751486bdec7c0495be84c4821103a70 100644 (file)
@@ -265,7 +265,7 @@ pkgAcquire::MethodConfig *pkgAcquire::GetConfig(string Access)
       return 0;
 
    /* if a method uses DownloadLimit, we switch to SingleInstance mode */
       return 0;
 
    /* if a method uses DownloadLimit, we switch to SingleInstance mode */
-   if(_config->FindI("Acquire::"+Access+"::DlLimit",0) > 0)
+   if(_config->FindI("Acquire::"+Access+"::Dl-Limit",0) > 0)
       Conf->SingleInstance = true;
     
    return Conf;
       Conf->SingleInstance = true;
     
    return Conf;
@@ -444,8 +444,9 @@ bool pkgAcquire::Clean(string Dir)
         unlink(Dir->d_name);
    };
    
         unlink(Dir->d_name);
    };
    
-   chdir(StartDir.c_str());
    closedir(D);
    closedir(D);
+   if (chdir(StartDir.c_str()) != 0)
+      return _error->Errno("chdir",_("Unable to change to %s"),StartDir.c_str());
    return true;   
 }
                                                                        /*}}}*/
    return true;   
 }
                                                                        /*}}}*/