]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/version.cc
First draft of make system and name change to apt-pkg
[apt.git] / apt-pkg / version.cc
index c02ee5f876e4ce1ef97e355e55cab1a7902833c7..9f245a9e70510e70ef48707db5f6a5b32b8ad9d9 100644 (file)
@@ -1,6 +1,6 @@
 // -*- 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>
                                                                        /*}}}*/
@@ -212,32 +216,32 @@ bool pkgCheckDep(const char *DepVer,const char *PkgVer,int Op)
    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;