mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-17 12:17:39 +00:00
Use special matcher for $Architecture, so that 'any' matches any arch.
This commit is contained in:
@@ -116,6 +116,9 @@ func (q *FieldQuery) Matches(pkg *Package) bool {
|
|||||||
if q.Field == "$Version" {
|
if q.Field == "$Version" {
|
||||||
return pkg.MatchesDependency(Dependency{Pkg: pkg.Name, Relation: q.Relation, Version: q.Value})
|
return pkg.MatchesDependency(Dependency{Pkg: pkg.Name, Relation: q.Relation, Version: q.Value})
|
||||||
}
|
}
|
||||||
|
if q.Field == "$Architecture" && q.Relation == VersionEqual {
|
||||||
|
return pkg.MatchesArchitecture(q.Value)
|
||||||
|
}
|
||||||
|
|
||||||
field := pkg.GetField(q.Field)
|
field := pkg.GetField(q.Field)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user