mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-03 05:00:56 +00:00
Attempt to lower memory usage when publishing with contents.
This commit is contained in:
+1
-9
@@ -407,15 +407,7 @@ func (p *Package) Contents(packagePool aptly.PackagePool) []string {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if p.contents == nil {
|
return p.collection.loadContents(p, packagePool)
|
||||||
if p.collection == nil {
|
|
||||||
panic("contents == nil && collection == nil")
|
|
||||||
}
|
|
||||||
|
|
||||||
p.contents = p.collection.loadContents(p, packagePool)
|
|
||||||
}
|
|
||||||
|
|
||||||
return p.contents
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CalculateContents looks up contents in package file
|
// CalculateContents looks up contents in package file
|
||||||
|
|||||||
Reference in New Issue
Block a user