mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-19 10:47:13 +00:00
Attempt to lower memory usage when publishing with contents.
This commit is contained in:
1 parent
2fe8cfdc12
commit
644d24d1cc
1 file changed
+1
-9
+1
-9
@@ -407,15 +407,7 @@ func (p *Package) Contents(packagePool aptly.PackagePool) []string {
|
||||
return nil
|
||||
}
|
||||
|
||||
if p.contents == nil {
|
||||
if p.collection == nil {
|
||||
panic("contents == nil && collection == nil")
|
||||
}
|
||||
|
||||
p.contents = p.collection.loadContents(p, packagePool)
|
||||
}
|
||||
|
||||
return p.contents
|
||||
return p.collection.loadContents(p, packagePool)
|
||||
}
|
||||
|
||||
// CalculateContents looks up contents in package file
|
||||
|
||||
Reference in new issue
Block a user