diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:33 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:33 +0000 |
commit | 7a1b1f8bd649113e99ecef0489e2f2194e283d1e (patch) | |
tree | 753f89e873612294a9a5a782294ebc2bf1c65462 /apt-pkg/acquire.cc | |
parent | 30e1eab53324523297a24c18819b27aba7ce1fb4 (diff) |
Dselect support
Author: jgg
Date: 1998-11-22 23:37:03 GMT
Dselect support
Diffstat (limited to 'apt-pkg/acquire.cc')
-rw-r--r-- | apt-pkg/acquire.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc index 353e2f698..3bd7662fd 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.16 1998/11/14 01:39:45 jgg Exp $ +// $Id: acquire.cc,v 1.17 1998/11/22 23:37:03 jgg Exp $ /* ###################################################################### Acquire - File Acquiration @@ -459,11 +459,14 @@ pkgAcquire::Queue::~Queue() /* */ void pkgAcquire::Queue::Enqueue(ItemDesc &Item) { + QItem **I = &Items; + for (; *I != 0; I = &(*I)->Next); + // Create a new item - QItem *I = new QItem; - I->Next = Items; - Items = I; - *I = Item; + QItem *Itm = new QItem; + *Itm = Item; + Itm->Next = 0; + *I = Itm; Item.Owner->QueueCounter++; if (Items->Next == 0) |