diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:12 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:12 +0000 |
commit | e7432370a1c503b0c6d30b501fa84406e3d1bef2 (patch) | |
tree | 27eba8b2e012d1ec85cabf088018c25f0776e246 /apt-pkg/acquire.cc | |
parent | db890fdba13d88ef85a2ac0ce39749ebfa835516 (diff) |
More fixes
Author: jgg
Date: 1998-12-11 07:20:32 GMT
More fixes
Diffstat (limited to 'apt-pkg/acquire.cc')
-rw-r--r-- | apt-pkg/acquire.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc index e73619530..ab60d1b47 100644 --- a/apt-pkg/acquire.cc +++ b/apt-pkg/acquire.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: acquire.cc,v 1.22 1998/12/11 06:32:35 jgg Exp $ +// $Id: acquire.cc,v 1.23 1998/12/11 07:20:32 jgg Exp $ /* ###################################################################### Acquire - File Acquiration @@ -589,9 +589,12 @@ bool pkgAcquire::Queue::Cycle() if (Items == 0 || Workers == 0) return true; + if (PipeDepth < 0) + return _error->Error("Pipedepth failure"); + // Look for a queable item QItem *I = Items; - while (PipeDepth < MaxPipeDepth) + while (PipeDepth < (signed)MaxPipeDepth) { for (; I != 0; I = I->Next) if (I->Owner->Status == pkgAcquire::Item::StatIdle) @@ -603,6 +606,7 @@ bool pkgAcquire::Queue::Cycle() I->Worker = Workers; I->Owner->Status = pkgAcquire::Item::StatFetching; + PipeDepth++; if (Workers->QueueItem(I) == false) return false; } |