diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:58:23 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:58:23 +0000 |
commit | 4e0680f913218a9c4b52ccc842924e223b403df6 (patch) | |
tree | ac0e4cd38ecf04fa6324a8c61cb4143afe1afc9b | |
parent | 343bd48e61a8691fc4fdc15256d5d2522387ae23 (diff) |
Fixed errant prefix matching
Author: jgg
Date: 2001-06-10 01:57:45 GMT
Fixed errant prefix matching
-rw-r--r-- | apt-pkg/versionmatch.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apt-pkg/versionmatch.cc b/apt-pkg/versionmatch.cc index 8e8e2d2d1..e7d8e4dc7 100644 --- a/apt-pkg/versionmatch.cc +++ b/apt-pkg/versionmatch.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: versionmatch.cc,v 1.5 2001/05/29 03:07:12 jgg Exp $ +// $Id: versionmatch.cc,v 1.6 2001/06/10 01:57:45 jgg Exp $ /* ###################################################################### Version Matching @@ -28,6 +28,10 @@ /* Break up the data string according to the selected type */ pkgVersionMatch::pkgVersionMatch(string Data,MatchType Type) : Type(Type) { + MatchAll = false; + VerPrefixMatch = false; + RelVerPrefixMatch = false; + if (Type == None || Data.length() < 1) return; @@ -53,8 +57,6 @@ pkgVersionMatch::pkgVersionMatch(string Data,MatchType Type) : Type(Type) return; } - MatchAll = false; - // Are we a simple specification? string::const_iterator I = Data.begin(); for (; I != Data.end() && *I != '='; I++); |