summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcachegen.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:24 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:24 +0000
commit0919e3f9400aba51bd73e7f90c6d1ba4406b5421 (patch)
tree8f8238229c598b7384c22f0c6eb100e7653ad479 /apt-pkg/pkgcachegen.cc
parent93274b8d888dea1cf8a855029800b808c6244605 (diff)
apt-get update works
Author: jgg Date: 1998-11-11 23:45:08 GMT apt-get update works
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r--apt-pkg/pkgcachegen.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc
index f41ee4925..25704e053 100644
--- a/apt-pkg/pkgcachegen.cc
+++ b/apt-pkg/pkgcachegen.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: pkgcachegen.cc,v 1.20 1998/10/20 02:39:21 jgg Exp $
+// $Id: pkgcachegen.cc,v 1.21 1998/11/11 23:45:28 jgg Exp $
/* ######################################################################
Package Cache Generator - Generator for the cache structure.
@@ -385,7 +385,7 @@ bool pkgSrcCacheCheck(pkgSourceList &List)
return false;
string CacheFile = _config->FindFile("Dir::Cache::srcpkgcache");
- string ListDir = _config->FindFile("Dir::State::lists");
+ string ListDir = _config->FindDir("Dir::State::lists");
// Count the number of missing files
int Missing = 0;
@@ -592,8 +592,7 @@ bool pkgMakeStatusCache(pkgSourceList &List,OpProgress &Progress)
if (SrcOk == false)
{
string SCacheFile = _config->FindFile("Dir::Cache::srcpkgcache");
- string ListDir = _config->FindFile("Dir::State::lists");
-
+ string ListDir = _config->FindDir("Dir::State::lists");
FileFd SCacheF(SCacheFile,FileFd::WriteEmpty);
FileFd CacheF(CacheFile,FileFd::WriteEmpty);
DynamicMMap Map(CacheF,MMap::Public);