diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:41 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:41 +0000 |
commit | c9807169492a1f5674fafc0af29eb37a9bbb26b3 (patch) | |
tree | 41d5a36476546b6e0fca11b24f1207dbcab35523 /apt-pkg/pkgcache.cc | |
parent | 1e4e52e0f74a2fd1e2c46627b6acb8aab54e792e (diff) |
Version compare fixes
Author: jgg
Date: 1998-11-27 00:07:23 GMT
Version compare fixes
Diffstat (limited to 'apt-pkg/pkgcache.cc')
-rw-r--r-- | apt-pkg/pkgcache.cc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc index 2fbdc717f..06cad4b16 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.17 1998/11/23 07:03:05 jgg Exp $ +// $Id: pkgcache.cc,v 1.18 1998/11/27 00:07:24 jgg Exp $ /* ###################################################################### Package Cache - Accessor code for the cache @@ -422,6 +422,18 @@ bool pkgCache::VerIterator::Downloadable() const return false; } /*}}}*/ +// VerIterator::PriorityType - Return a string describing the priority /*{{{*/ +// --------------------------------------------------------------------- +/* */ +const char *pkgCache::VerIterator::PriorityType() +{ + const char *Types[] = {"","Important","Required","Standard", + "Optional","Extra"}; + if (Ver->Priority < 6) + return Types[Ver->Priority]; + return ""; +} + /*}}}*/ // PkgFileIterator::IsOk - Checks if the cache is in sync with the file /*{{{*/ // --------------------------------------------------------------------- /* This stats the file and compares its stats with the ones that were |