diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:59 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:59 +0000 |
commit | a339613f160bb40864454874eb42b896b3149b9b (patch) | |
tree | f6768b8e6c80f66edf14c7ff43d265993f412b7b /apt-pkg | |
parent | 6f86c974be448260a89c1a10d213ec23963711d0 (diff) |
Fixed handling of source deb types again
Author: jgg
Date: 1999-03-08 07:18:11 GMT
Fixed handling of source deb types again
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/pkgcachegen.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index ee25a6c05..9806e5b91 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.32 1999/03/06 02:13:48 jgg Exp $ +// $Id: pkgcachegen.cc,v 1.33 1999/03/08 07:18:11 jgg Exp $ /* ###################################################################### Package Cache Generator - Generator for the cache structure. @@ -469,12 +469,16 @@ bool pkgSrcCacheCheck(pkgSourceList &List) return false; for (pkgCache::PkgFileIterator F(Cache); F.end() == false; F++) - { + { // Search for a match in the source list bool Bad = true; 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 (F.FileName() == File) { |