]>
git.saurik.com Git - apt.git/blob - cmdline/debfile.h
4 #include <apt-pkg/fileutl.h>
5 #include <apt-pkg/pkgcache.h>
6 #include <apt-pkg/dirstream.h>
8 class DebFile
: public pkgDirStream
10 const char *ParseDepends(const char *Start
,const char *Stop
,
11 char *&Package
, char *&Ver
,
14 char *CopyString(const char *start
, unsigned int len
);
19 unsigned long ControlLen
;
22 DebFile(const char *FileName
);
24 bool DoItem(Item
&I
, int &fd
);
25 bool Process(pkgDirStream::Item
&I
, const unsigned char *data
,
26 unsigned long size
, unsigned long pos
);
31 static char *GetInstalledVer(const char *package
);
35 char *DepVer
, *PreDepVer
;
36 unsigned int DepOp
, PreDepOp
;
41 static pkgCache
*Cache
;
42 enum { None
, IsControl
, IsConfig
, IsTemplate
} Which
;