Attempt to lower memory usage when publishing with contents.

This commit is contained in:
Andrey Smirnov
2016-03-28 13:28:26 +03:00
parent 2fe8cfdc12
commit 644d24d1cc
+1 -9
View File
@@ -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