// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: version.cc,v 1.1 1998/07/02 02:58:13 jgg Exp $
+// $Id: version.cc,v 1.4 1998/07/12 23:58:42 jgg Exp $
/* ######################################################################
Version - Version string
##################################################################### */
/*}}}*/
// Include Files /*{{{*/
-#include <pkglib/version.h>
-#include <pkglib/pkgcache.h>
+#ifdef __GNUG__
+#pragma implementation "apt-pkg/version.h"
+#endif
+
+#include <apt-pkg/version.h>
+#include <apt-pkg/pkgcache.h>
#include <stdlib.h>
/*}}}*/
int Res = pkgVersionCompare(PkgVer,DepVer);
switch (Op & 0x0F)
{
- case pkgOP_LESSEQ:
+ case pkgCache::Dep::LessEq:
if (Res <= 0)
return true;
break;
- case pkgOP_GREATEREQ:
+ case pkgCache::Dep::GreaterEq:
if (Res >= 0)
return true;
break;
- case pkgOP_LESS:
+ case pkgCache::Dep::Less:
if (Res < 0)
return true;
break;
- case pkgOP_GREATER:
+ case pkgCache::Dep::Greater:
if (Res > 0)
return true;
break;
- case pkgOP_EQUALS:
+ case pkgCache::Dep::Equals:
if (Res == 0)
return true;
break;
- case pkgOP_NOTEQUALS:
+ case pkgCache::Dep::NotEquals:
if (Res != 0)
return true;
break;