From 644d24d1cc5c6e75bbc98f646f77d60af1b5ae2e Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Mon, 28 Mar 2016 13:28:26 +0300 Subject: [PATCH] Attempt to lower memory usage when publishing with contents. --- deb/package.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/deb/package.go b/deb/package.go index 422bf2d4..0b98a001 100644 --- a/deb/package.go +++ b/deb/package.go @@ -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