mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Allow to override architectures when publishing. #116
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user