Merge pull request #1404 from schoenherrg/fix/with-sources-ignored

Fix `-with-sources` not fetching differently named source packages
This commit is contained in:
André Roth
2024-12-11 13:01:30 +01:00
committed by GitHub
16 changed files with 265 additions and 74 deletions
+6 -2
View File
@@ -307,8 +307,12 @@ func apiMirrorsPackages(c *gin.Context) {
list.PrepareIndex()
list, err = list.Filter([]deb.PackageQuery{q}, withDeps,
nil, context.DependencyOptions(), architecturesList)
list, err = list.Filter(deb.FilterOptions{
Queries: []deb.PackageQuery{q},
WithDependencies: withDeps,
DependencyOptions: context.DependencyOptions(),
Architectures: architecturesList,
})
if err != nil {
AbortWithJSONError(c, 500, fmt.Errorf("unable to search: %s", err))
}