mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Allow empty source in PackageList.Filter. #64
This commit is contained in:
+3
-1
@@ -416,7 +416,9 @@ func (l *PackageList) Filter(queries []PackageQuery, withDependencies bool, sour
|
||||
added := result.Len()
|
||||
|
||||
dependencySource := NewPackageList()
|
||||
dependencySource.Append(source)
|
||||
if source != nil {
|
||||
dependencySource.Append(source)
|
||||
}
|
||||
dependencySource.Append(result)
|
||||
dependencySource.PrepareIndex()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user