mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-16 12:08:04 +00:00
Merge branch 'master' into skipCleanup
This commit is contained in:
+1
-1
@@ -518,7 +518,7 @@ func (l *PackageList) FilterWithProgress(queries []PackageQuery, withDependencie
|
||||
}
|
||||
|
||||
searchResults := l.Search(dep, true)
|
||||
if searchResults != nil {
|
||||
if len(searchResults) > 0 {
|
||||
for _, p := range searchResults {
|
||||
if dependencyOptions&DepVerboseResolve == DepVerboseResolve && progress != nil {
|
||||
progress.ColoredPrintf("@{g}Injecting package@|: %s", p)
|
||||
|
||||
@@ -315,7 +315,7 @@ func (collection *PackageCollection) SearchSupported() bool {
|
||||
|
||||
// SearchByKey finds package by exact key
|
||||
func (collection *PackageCollection) SearchByKey(arch, name, version string) (result *PackageList) {
|
||||
result = NewPackageList()
|
||||
result = NewPackageListWithDuplicates(true, 0)
|
||||
|
||||
for _, key := range collection.db.KeysByPrefix([]byte(fmt.Sprintf("P%s %s %s", arch, name, version))) {
|
||||
pkg, err := collection.ByKey(key)
|
||||
|
||||
Reference in New Issue
Block a user