mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-09 06:04:12 +00:00
Introduce regexp query matching.
This commit is contained in:
+1
-1
@@ -295,7 +295,7 @@ func (p *Package) MatchesDependency(dep Dependency) bool {
|
||||
matched, err := filepath.Match(dep.Version, p.Version)
|
||||
return err == nil && matched
|
||||
case VersionRegexp:
|
||||
panic("regexp matching not implemented yet")
|
||||
return dep.Regexp.FindStringIndex(p.Version) != nil
|
||||
}
|
||||
|
||||
panic("unknown relation")
|
||||
|
||||
Reference in New Issue
Block a user