mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
fix build
This commit is contained in:
+3
-2
@@ -457,12 +457,12 @@ func apiPublishUpdateSwitch(c *gin.Context) {
|
|||||||
|
|
||||||
result, err := published.Update(collectionFactory, out)
|
result, err := published.Update(collectionFactory, out)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, fmt.Errorf("unable to update: %s", err)
|
return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, fmt.Errorf("Unable to update: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = published.Publish(context.PackagePool(), context, collectionFactory, signer, out, b.ForceOverwrite)
|
err = published.Publish(context.PackagePool(), context, collectionFactory, signer, out, b.ForceOverwrite)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, fmt.Errorf("unable to update: %s", err)
|
return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, fmt.Errorf("Unable to update: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = collection.Update(published)
|
err = collection.Update(published)
|
||||||
@@ -758,6 +758,7 @@ func apiPublishUpdate(c *gin.Context) {
|
|||||||
SkipBz2 *bool
|
SkipBz2 *bool
|
||||||
SkipCleanup *bool
|
SkipCleanup *bool
|
||||||
SkipContents *bool
|
SkipContents *bool
|
||||||
|
MultiDist *bool
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.Bind(&b) != nil {
|
if c.Bind(&b) != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user