mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-09 22:39:53 +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
|
Label string
|
||||||
Origin string
|
Origin string
|
||||||
ForceOverwrite bool
|
ForceOverwrite bool
|
||||||
|
Architectures []string
|
||||||
Signing SigningOptions
|
Signing SigningOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -137,7 +138,7 @@ func apiPublishRepoOrSnapshot(c *gin.Context) {
|
|||||||
collection.Lock()
|
collection.Lock()
|
||||||
defer collection.Unlock()
|
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 {
|
if err != nil {
|
||||||
c.Fail(500, fmt.Errorf("unable to publish: %s", err))
|
c.Fail(500, fmt.Errorf("unable to publish: %s", err))
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user