Add Dependency::ResolvableVersionMatches()
This commit is contained in:
parent
032ef7b25b
commit
e71dd015a5
@ -49,3 +49,14 @@ Dependency::SetVersionRequirement(BPackageResolvableOperator op,
|
||||
fVersionOperator = op;
|
||||
fVersion = version;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
Dependency::ResolvableVersionMatches(Version* resolvableVersion) const
|
||||
{
|
||||
if (fVersion == NULL)
|
||||
return true;
|
||||
|
||||
return resolvableVersion != NULL
|
||||
&& fVersion->Compare(fVersionOperator, *resolvableVersion);
|
||||
}
|
||||
|
@ -47,6 +47,8 @@ public:
|
||||
{ fResolvable = resolvable; }
|
||||
::Resolvable* Resolvable() const
|
||||
{ return fResolvable; }
|
||||
bool ResolvableVersionMatches(
|
||||
Version* resolvableVersion) const;
|
||||
|
||||
const char* Name() const { return fName; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user