mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-12 06:30:35 +00:00
Refactor Filter options into a struct
It was already a lot of options for one method and I am going to add another one in the next commit.
This commit is contained in:
+8
-1
@@ -596,7 +596,14 @@ func (repo *RemoteRepo) ApplyFilter(dependencyOptions int, filterQuery PackageQu
|
||||
emptyList.PrepareIndex()
|
||||
|
||||
oldLen = repo.packageList.Len()
|
||||
repo.packageList, err = repo.packageList.FilterWithProgress([]PackageQuery{filterQuery}, repo.FilterWithDeps, emptyList, dependencyOptions, repo.Architectures, progress)
|
||||
repo.packageList, err = repo.packageList.Filter(FilterOptions{
|
||||
Queries: []PackageQuery{filterQuery},
|
||||
WithDependencies: repo.FilterWithDeps,
|
||||
Source: emptyList,
|
||||
DependencyOptions: dependencyOptions,
|
||||
Architectures: repo.Architectures,
|
||||
Progress: progress,
|
||||
})
|
||||
if repo.packageList != nil {
|
||||
newLen = repo.packageList.Len()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user