]> git.saurik.com Git - apt.git/blame - apt-pkg/deb/debversion.h
extract getDpkgExecutable() and DPkgPM::BuildPackagesProgressMap() out of the monster...
[apt.git] / apt-pkg / deb / debversion.h
CommitLineData
b2e465d6
AL
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
c0a00c82 3// $Id: debversion.h,v 1.3 2001/05/03 05:25:04 jgg Exp $
b2e465d6
AL
4/* ######################################################################
5
6 Debian Version - Versioning system for Debian
7
8 This implements the standard Debian versioning system.
9
10 ##################################################################### */
11 /*}}}*/
12#ifndef PKGLIB_DEBVERSION_H
13#define PKGLIB_DEBVERSION_H
14
13500573 15
b2e465d6
AL
16
17#include <apt-pkg/version.h>
18
19class debVersioningSystem : public pkgVersioningSystem
c0a00c82
AL
20{
21 public:
22
b2e465d6
AL
23 static int CmpFragment(const char *A, const char *AEnd, const char *B,
24 const char *BEnd);
25
b2e465d6
AL
26 // Compare versions..
27 virtual int DoCmpVersion(const char *A,const char *Aend,
28 const char *B,const char *Bend);
29 virtual bool CheckDep(const char *PkgVer,int Op,const char *DepVer);
30 virtual int DoCmpReleaseVer(const char *A,const char *Aend,
31 const char *B,const char *Bend)
32 {
33 return DoCmpVersion(A,Aend,B,Bend);
34 }
8f3ba4e8 35 virtual std::string UpstreamVersion(const char *A);
b2e465d6
AL
36
37 debVersioningSystem();
38};
39
40extern debVersioningSystem debVS;
41
b2e465d6 42#endif