summaryrefslogtreecommitdiff
path: root/apt-pkg/version.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:50:41 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:50:41 +0000
commit6c139d6e362f04a1582e8a8f511f8aeab031fecf (patch)
treec200b8f51da9bcfe612b7ceb645e6eec9ebac9f1 /apt-pkg/version.cc
parent2246928b428c3ece2c2743da5b0bb63257e37a85 (diff)
Sync
Author: jgg Date: 1998-07-07 04:17:00 GMT Sync
Diffstat (limited to 'apt-pkg/version.cc')
-rw-r--r--apt-pkg/version.cc18
1 files changed, 11 insertions, 7 deletions
diff --git a/apt-pkg/version.cc b/apt-pkg/version.cc
index 174622c91..7eb85726c 100644
--- a/apt-pkg/version.cc
+++ b/apt-pkg/version.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: version.cc,v 1.2 1998/07/04 05:57:40 jgg Exp $
+// $Id: version.cc,v 1.3 1998/07/07 04:17:08 jgg Exp $
/* ######################################################################
Version - Version string
@@ -17,6 +17,10 @@
##################################################################### */
/*}}}*/
// Include Files /*{{{*/
+#ifdef __GNUG__
+#pragma implementation "pkglib/version.h"
+#endif
+
#include <pkglib/version.h>
#include <pkglib/pkgcache.h>
@@ -212,32 +216,32 @@ bool pkgCheckDep(const char *DepVer,const char *PkgVer,int Op)
int Res = pkgVersionCompare(PkgVer,DepVer);
switch (Op & 0x0F)
{
- case pkgCache::LessEq:
+ case pkgCache::Dep::LessEq:
if (Res <= 0)
return true;
break;
- case pkgCache::GreaterEq:
+ case pkgCache::Dep::GreaterEq:
if (Res >= 0)
return true;
break;
- case pkgCache::Less:
+ case pkgCache::Dep::Less:
if (Res < 0)
return true;
break;
- case pkgCache::Greater:
+ case pkgCache::Dep::Greater:
if (Res > 0)
return true;
break;
- case pkgCache::Equals:
+ case pkgCache::Dep::Equals:
if (Res == 0)
return true;
break;
- case pkgCache::NotEquals:
+ case pkgCache::Dep::NotEquals:
if (Res != 0)
return true;
break;