Fixed errant prefix matching
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:58:23 +0000 (16:58 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:58:23 +0000 (16:58 +0000)
Author: jgg
Date: 2001-06-10 01:57:45 GMT
Fixed errant prefix matching

apt-pkg/versionmatch.cc

index 8e8e2d2..e7d8e4d 100644 (file)
@@ -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 
 /* 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++);