~ubuntu-branches/debian/experimental/apt/experimental

« back to all changes in this revision

Viewing changes to apt-pkg/pkgcachegen.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2010-02-18 22:07:23 UTC
  • mfrom: (9.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100218220723-zb7zdh6fmsmp30tr
Tags: 0.7.26~exp2
fix crash when LANGUAGE is not set

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
 
23
23
#include <apt-pkg/pkgcache.h>
24
 
#include <apt-pkg/contrib/md5.h>
 
24
#include <apt-pkg/md5.h>
25
25
 
26
26
class pkgSourceList;
27
27
class OpProgress;
28
28
class MMap;
29
29
class pkgIndexFile;
30
30
 
31
 
class pkgCacheGenerator
 
31
class pkgCacheGenerator                                                 /*{{{*/
32
32
{
33
33
   private:
34
34
   
56
56
   bool NewFileDesc(pkgCache::DescIterator &Desc,ListParser &List);
57
57
   unsigned long NewVersion(pkgCache::VerIterator &Ver,const string &VerStr,unsigned long Next);
58
58
   map_ptrloc NewDescription(pkgCache::DescIterator &Desc,const string &Lang,const MD5SumValue &md5sum,map_ptrloc Next);
59
 
   bool IsDuplicatedTranslation(ListParser &List, pkgCache::DescIterator Desc, MD5SumValue CurMd5);
60
59
 
61
60
   public:
62
61
 
77
76
   pkgCacheGenerator(DynamicMMap *Map,OpProgress *Progress);
78
77
   ~pkgCacheGenerator();
79
78
};
80
 
 
81
 
// This is the abstract package list parser class.
 
79
                                                                        /*}}}*/
 
80
// This is the abstract package list parser class.                      /*{{{*/
82
81
class pkgCacheGenerator::ListParser
83
82
{
84
83
   pkgCacheGenerator *Owner;
127
126
   ListParser() : FoundFileDeps(false) {};
128
127
   virtual ~ListParser() {};
129
128
};
130
 
 
 
129
                                                                        /*}}}*/
131
130
bool pkgMakeStatusCache(pkgSourceList &List,OpProgress &Progress,
132
131
                        MMap **OutMap = 0,bool AllowMem = false);
133
132
bool pkgMakeOnlyStatusCache(OpProgress &Progress,DynamicMMap **OutMap);