From 0a8e3465cb644e380ab0fc6d66f6d1f17363b34e Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:51:01 +0000 Subject: Sync Author: jgg Date: 1998-10-02 04:39:42 GMT Sync --- apt-pkg/pkgcache.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'apt-pkg/pkgcache.cc') diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc index 02b28fa47..2e62f2ea4 100644 --- a/apt-pkg/pkgcache.cc +++ b/apt-pkg/pkgcache.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: pkgcache.cc,v 1.8 1998/07/19 04:22:00 jgg Exp $ +// $Id: pkgcache.cc,v 1.9 1998/10/02 04:39:46 jgg Exp $ /* ###################################################################### Package Cache - Accessor code for the cache @@ -336,6 +336,18 @@ pkgCache::Version **pkgCache::DepIterator::AllTargets() return Res; } /*}}}*/ +// DepIterator::CompType - Return a string describing the compare type /*{{{*/ +// --------------------------------------------------------------------- +/* This returns a string representation of the dependency compare + type */ +const char *pkgCache::DepIterator::CompType() +{ + const char *Ops[] = {"","<=",">=","<",">","=","!="}; + if ((Dep->CompareOp & 0xF) < sizeof(Ops)) + return Ops[Dep->CompareOp & 0xF]; + return ""; +} + /*}}}*/ // VerIterator::CompareVer - Fast version compare for same pkgs /*{{{*/ // --------------------------------------------------------------------- /* This just looks over the version list to see if B is listed before A. In -- cgit v1.2.3-70-g09d2