From a4201a40d29b1384839ac8ed054a11c8ca1ac7eb Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Sat, 7 Feb 2015 18:36:42 +0300 Subject: [PATCH] Allow to override architectures when publishing. #116 --- api/publish.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/publish.go b/api/publish.go index e6318eaf..ed173284 100644 --- a/api/publish.go +++ b/api/publish.go @@ -61,6 +61,7 @@ func apiPublishRepoOrSnapshot(c *gin.Context) { Label string Origin string ForceOverwrite bool + Architectures []string Signing SigningOptions } @@ -137,7 +138,7 @@ func apiPublishRepoOrSnapshot(c *gin.Context) { collection.Lock() defer collection.Unlock() - published, err := deb.NewPublishedRepo(storage, prefix, b.Distribution, context.ArchitecturesList(), components, sources, context.CollectionFactory()) + published, err := deb.NewPublishedRepo(storage, prefix, b.Distribution, b.Architectures, components, sources, context.CollectionFactory()) if err != nil { c.Fail(500, fmt.Errorf("unable to publish: %s", err)) return