]>
git.saurik.com Git - apt-legacy.git/blob - cmdline/apt-extracttemplates.h
1 // -*- mode: cpp; mode: fold -*-
3 // $Id: apt-extracttemplates.h,v 1.2 2001/02/27 04:26:03 jgg Exp $
4 /* ######################################################################
6 apt-extracttemplate - tool to extract template and config data
8 ##################################################################### */
10 #ifndef _APTEXTRACTTEMPLATE_H_
11 #define _APTEXTRACTTEMPLATE_H_
13 #include <apt-pkg/fileutl.h>
14 #include <apt-pkg/pkgcache.h>
15 #include <apt-pkg/dirstream.h>
17 class DebFile
: public pkgDirStream
22 unsigned long ControlLen
;
25 DebFile(const char *FileName
);
27 bool DoItem(Item
&I
, int &fd
);
28 bool Process(pkgDirStream::Item
&I
, const unsigned char *data
,
29 unsigned long size
, unsigned long pos
);
34 static string
GetInstalledVer(const string
&package
);
38 string DepVer
, PreDepVer
;
39 unsigned int DepOp
, PreDepOp
;
44 static pkgCache
*Cache
;
45 enum { None
, IsControl
, IsConfig
, IsTemplate
} Which
;