diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:01 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:01 +0000 |
commit | 0a8e3465cb644e380ab0fc6d66f6d1f17363b34e (patch) | |
tree | 7bc1f7814b793e616fb516d130e26bae04f848cf /apt-pkg/pkgcachegen.cc | |
parent | e1b74f61dfb6980d643cb7c666c761ff3bda2f1e (diff) |
Sync
Author: jgg
Date: 1998-10-02 04:39:42 GMT
Sync
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r-- | apt-pkg/pkgcachegen.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index 6b3bfa3c5..567628ef5 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.17 1998/09/26 05:34:23 jgg Exp $ +// $Id: pkgcachegen.cc,v 1.18 1998/10/02 04:39:47 jgg Exp $ /* ###################################################################### Package Cache Generator - Generator for the cache structure. @@ -413,7 +413,7 @@ bool pkgSrcCacheCheck(pkgSourceList &List) } MMap Map(CacheF,MMap::Public | MMap::ReadOnly); - if (_error->PendingError() == true) + if (_error->PendingError() == true || Map.Size() == 0) { _error->Discard(); return false; @@ -474,7 +474,7 @@ bool pkgPkgCacheCheck(string CacheFile) } MMap Map(CacheF,MMap::Public | MMap::ReadOnly); - if (_error->PendingError() == true) + if (_error->PendingError() == true || Map.Size() == 0) { _error->Discard(); return false; @@ -565,7 +565,7 @@ bool pkgMakeStatusCache(pkgSourceList &List,OpProgress &Progress) string CacheFile = _config->FindDir("Dir::Cache::pkgcache"); bool SrcOk = pkgSrcCacheCheck(List); - bool PkgOk = pkgPkgCacheCheck(CacheFile); + bool PkgOk = SrcOk && pkgPkgCacheCheck(CacheFile); // Rebuild the source and package caches if (SrcOk == false) |