diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:51 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:51 +0000 |
commit | 143e0a1f9a3f1be0ea59637492a0b2cf9d7fa4db (patch) | |
tree | c26916e9d99a04670cb121c2e0c626c49c3e7e98 /apt-pkg/version.cc | |
parent | ac49a1e5b9b1ac67d66de25072a5a197432bece3 (diff) |
Version compare glitch
Author: jgg
Date: 1998-12-05 01:44:57 GMT
Version compare glitch
Diffstat (limited to 'apt-pkg/version.cc')
-rw-r--r-- | apt-pkg/version.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apt-pkg/version.cc b/apt-pkg/version.cc index 4e2e61312..f3ebb556e 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.7 1998/11/28 20:50:24 jgg Exp $ +// $Id: version.cc,v 1.8 1998/12/05 01:44:57 jgg Exp $ /* ###################################################################### Version - Version string @@ -59,7 +59,6 @@ int pkgVersionCompare(string A,string B) static int iVersionCompare(const char *A, const char *AEnd, const char *B, const char *BEnd) { - // cout << string(A,AEnd) << ',' << string(B,BEnd) << endl; if (A >= AEnd && B >= BEnd) return 0; if (A >= AEnd) @@ -182,9 +181,9 @@ int pkgVersionCompare(const char *A, const char *AEnd, const char *B, for (;dlhs > lhs && *dlhs != '-'; dlhs--); for (;drhs > rhs && *drhs != '-'; drhs--); - if (dlhs == A) + if (dlhs == lhs) dlhs = AEnd; - if (drhs == B) + if (drhs == rhs) drhs = BEnd; // Compare the main version |