Author: jgg
Date: 2001-05-29 03:07:12 GMT
Fixed matching all releases
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: versionmatch.cc,v 1.4 2001/05/22 06:20:06 jgg Exp $
+// $Id: versionmatch.cc,v 1.5 2001/05/29 03:07:12 jgg Exp $
/* ######################################################################
Version Matching
/* ######################################################################
Version Matching
{
// All empty = match all
if (Data == "*")
{
// All empty = match all
if (Data == "*")
+ }
+
+ MatchAll = false;
// Are we a simple specification?
string::const_iterator I = Data.begin();
// Are we a simple specification?
string::const_iterator I = Data.begin();
+ if (MatchAll == true)
+ return true;
+
/* cout << RelVerStr << ',' << RelOrigin << ',' << RelArchive << ',' << RelLabel << endl;
cout << File.Version() << ',' << File.Origin() << ',' << File.Archive() << ',' << File.Label() << endl;*/
/* cout << RelVerStr << ',' << RelOrigin << ',' << RelArchive << ',' << RelLabel << endl;
cout << File.Version() << ',' << File.Origin() << ',' << File.Archive() << ',' << File.Label() << endl;*/
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: versionmatch.h,v 1.3 2001/05/07 04:24:08 jgg Exp $
+// $Id: versionmatch.h,v 1.4 2001/05/29 03:07:12 jgg Exp $
/* ######################################################################
Version Matching
/* ######################################################################
Version Matching
string RelArchive;
string RelLabel;
string RelComponent;
string RelArchive;
string RelLabel;
string RelComponent;
// Origin Matching
string OrSite;
// Origin Matching
string OrSite;