summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:53:33 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:53:33 +0000
commitc9a64a4dc57e49e9a92e5e8c3e32ea9619534a58 (patch)
treed12ee4aec25d2c64cef4fdf76e42fc098b90d249 /apt-pkg
parentf40e3a64fbfd692a783fe4442ff0efcd5a9b3a8e (diff)
Do not count sizes of to be configured packages
Author: jgg Date: 1999-04-16 21:46:13 GMT Do not count sizes of to be configured packages
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/depcache.cc5
-rw-r--r--apt-pkg/makefile2
-rw-r--r--apt-pkg/templates.cc5
3 files changed, 2 insertions, 10 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc
index 1529eb364..7d1ff05ea 100644
--- a/apt-pkg/depcache.cc
+++ b/apt-pkg/depcache.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: depcache.cc,v 1.16 1999/04/12 04:21:20 jgg Exp $
+// $Id: depcache.cc,v 1.17 1999/04/16 21:46:13 jgg Exp $
/* ######################################################################
Dependency Cache - Caches Dependency information.
@@ -205,10 +205,7 @@ void pkgDepCache::AddSizes(const PkgIterator &Pkg,long Mult)
if (Pkg.State() == pkgCache::PkgIterator::NeedsConfigure &&
P.Keep() == true)
- {
- iUsrSize += Mult*P.InstVerIter(*this)->InstalledSize;
return;
- }
// Compute the size data
if (P.NewInstall() == true)
diff --git a/apt-pkg/makefile b/apt-pkg/makefile
index 0564ce15e..14ed1dea5 100644
--- a/apt-pkg/makefile
+++ b/apt-pkg/makefile
@@ -24,7 +24,7 @@ SOURCE = contrib/mmap.cc contrib/error.cc contrib/strutl.cc \
SOURCE+= pkgcache.cc version.cc fileutl.cc pkgcachegen.cc depcache.cc \
orderlist.cc tagfile.cc sourcelist.cc packagemanager.cc \
pkgrecords.cc algorithms.cc acquire.cc acquire-item.cc \
- acquire-worker.cc acquire-method.cc init.cc clean.cc templates.cc \
+ acquire-worker.cc acquire-method.cc init.cc clean.cc \
srcrecords.cc
# Source code for the debian specific components
diff --git a/apt-pkg/templates.cc b/apt-pkg/templates.cc
deleted file mode 100644
index 1e7d202c9..000000000
--- a/apt-pkg/templates.cc
+++ /dev/null
@@ -1,5 +0,0 @@
-/* All template instances are explicly declared here */
-
-#include <apt-pkg/sourcelist.h>
-
-template vector<pkgSourceList::Item>;