From 6c139d6e362f04a1582e8a8f511f8aeab031fecf Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:50:41 +0000 Subject: Sync Author: jgg Date: 1998-07-07 04:17:00 GMT Sync --- apt-pkg/version.cc | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'apt-pkg/version.cc') 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 #include @@ -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; -- cgit v1.2.3-70-g09d2