projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added Daniel Burrows to 'Uploaders'.
[apt.git]
/
apt-pkg
/
versionmatch.cc
diff --git
a/apt-pkg/versionmatch.cc
b/apt-pkg/versionmatch.cc
index 0ca850dc8694487127d109cd6b6a1d07a5f3fce4..4a426809c9095bc9002137beaf75b4b3904cd89a 100644
(file)
--- a/
apt-pkg/versionmatch.cc
+++ b/
apt-pkg/versionmatch.cc
@@
-1,6
+1,6
@@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: versionmatch.cc,v 1.
7 2002/11/06 06:43:14 jgg
Exp $
+// $Id: versionmatch.cc,v 1.
9 2003/05/19 17:58:26 doogie
Exp $
/* ######################################################################
Version Matching
/* ######################################################################
Version Matching
@@
-11,9
+11,6
@@
##################################################################### */
/*}}}*/
// Include Files /*{{{*/
##################################################################### */
/*}}}*/
// Include Files /*{{{*/
-#ifdef __GNUG__
-#pragma implementation "apt-pkg/versionmatch.h"
-#endif
#include <apt-pkg/versionmatch.h>
#include <apt-pkg/strutl.h>
#include <apt-pkg/versionmatch.h>
#include <apt-pkg/strutl.h>
@@
-208,11
+205,13
@@
bool pkgVersionMatch::FileMatch(pkgCache::PkgFileIterator File)
if (Type == Origin)
{
if (Type == Origin)
{
- if (OrSite.empty() == false)
- if (File->Site == 0 ||
- OrSite != File.Site())
+ if (OrSite.empty() == false) {
+ if (File->Site == 0 || OrSite != File.Site())
return false;
return false;
- return true;
+ } else // so we are talking about file:// or status file
+ if (strcmp(File.Site(),"") == 0 && File->Archive != 0) // skip the status file
+ return false;
+ return (OrSite == File.Site()); /* both strings match */
}
return false;
}
return false;