summaryrefslogtreecommitdiff
path: root/cmdline/debfile.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:56:45 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:56:45 +0000
commit234edfd074bd8a356494d5d8df8774cf1b096fd8 (patch)
tree25d2d20afc768f9a1ccd62b450557b1f8c774748 /cmdline/debfile.h
parent48d13628fd257b5bc1dec5c73b2829772a730e16 (diff)
apt-extracttemplates cleanup
Author: tausq Date: 2001-02-25 04:53:59 GMT apt-extracttemplates cleanup
Diffstat (limited to 'cmdline/debfile.h')
-rw-r--r--cmdline/debfile.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/cmdline/debfile.h b/cmdline/debfile.h
deleted file mode 100644
index b2db3c80b..000000000
--- a/cmdline/debfile.h
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef _debfile_H
-#define _debfile_H
-
-#include <apt-pkg/fileutl.h>
-#include <apt-pkg/pkgcache.h>
-#include <apt-pkg/dirstream.h>
-
-class DebFile : public pkgDirStream
-{
- const char *ParseDepends(const char *Start,const char *Stop,
- char *&Package, char *&Ver,
- unsigned int &Op);
-
- char *CopyString(const char *start, unsigned int len);
-
- FileFd File;
- unsigned long Size;
- char *Control;
- unsigned long ControlLen;
-
-public:
- DebFile(const char *FileName);
- ~DebFile();
- bool DoItem(Item &I, int &fd);
- bool Process(pkgDirStream::Item &I, const unsigned char *data,
- unsigned long size, unsigned long pos);
-
- bool Go();
- bool ParseInfo();
-
- static char *GetInstalledVer(const char *package);
-
- char *Package;
- char *Version;
- char *DepVer, *PreDepVer;
- unsigned int DepOp, PreDepOp;
-
- char *Config;
- char *Template;
-
- static pkgCache *Cache;
- enum { None, IsControl, IsConfig, IsTemplate } Which;
-};
-
-#endif