]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire.cc
* apt-pkg/pkgcachegen.cc:
[apt.git] / apt-pkg / acquire.cc
index cbd67055d952a37de89027a85804764869f9a5b8..91f60388959bce44a50ee81668b25d66e1e13e4a 100644 (file)
@@ -444,8 +444,9 @@ bool pkgAcquire::Clean(string Dir)
         unlink(Dir->d_name);
    };
    
-   chdir(StartDir.c_str());
    closedir(D);
+   if (chdir(StartDir.c_str()) != 0)
+      return _error->Errno("chdir",_("Unable to change to %s"),StartDir.c_str());
    return true;   
 }
                                                                        /*}}}*/
@@ -619,7 +620,7 @@ bool pkgAcquire::Queue::Startup()
          added other source retry to have cycle maintain a pipeline depth
          on its own. */
       if (Cnf->Pipeline == true)
-        MaxPipeDepth = 10;
+        MaxPipeDepth = 1000;
       else
         MaxPipeDepth = 1;
    }