summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcachegen.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:53:22 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:53:22 +0000
commiteb6a718efeb2b7bea3b52890af7ecbcacfc0ed74 (patch)
treee2032dc556e62e8a409416cb74495ba5cbb22bb5 /apt-pkg/pkgcachegen.cc
parent11e7af846822e893604052db7822de016fb97417 (diff)
downloadapt-eb6a718efeb2b7bea3b52890af7ecbcacfc0ed74.tar.gz
Fixed deb-src handling again
Author: jgg Date: 1999-04-04 01:33:09 GMT Fixed deb-src handling again
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r--apt-pkg/pkgcachegen.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc
index 9806e5b91..d7e830df5 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.33 1999/03/08 07:18:11 jgg Exp $
+// $Id: pkgcachegen.cc,v 1.34 1999/04/04 01:33:09 jgg Exp $
/* ######################################################################
Package Cache Generator - Generator for the cache structure.
@@ -438,7 +438,7 @@ bool pkgSrcCacheCheck(pkgSourceList &List)
Missing++;
}
}
-
+
// Open the source package cache
if (FileExists(CacheFile) == false)
return false;
@@ -629,7 +629,7 @@ bool pkgMakeStatusCache(pkgSourceList &List,OpProgress &Progress)
string CacheFile = _config->FindFile("Dir::Cache::pkgcache");
bool SrcOk = pkgSrcCacheCheck(List);
bool PkgOk = SrcOk && pkgPkgCacheCheck(CacheFile);
-
+
// Rebuild the source and package caches
if (SrcOk == false)
{
@@ -661,6 +661,10 @@ bool pkgMakeStatusCache(pkgSourceList &List,OpProgress &Progress)
unsigned long CurrentSize = 0;
for (pkgSourceList::const_iterator I = List.begin(); I != List.end(); I++)
{
+ // Only cache deb source types.
+ if (I->Type != pkgSourceList::Item::Deb)
+ continue;
+
string File = ListDir + URItoFileName(I->PackagesURI());
if (FileExists(File) == false)