mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-11 06:24:04 +00:00
Fix bug with components not being cleaned up after publish update. #116
This commit is contained in:
+1
-1
@@ -260,7 +260,7 @@ func apiPublishUpdateSwitch(c *gin.Context) {
|
|||||||
c.Fail(400, fmt.Errorf("snapshots shouldn't be given when updating local repo"))
|
c.Fail(400, fmt.Errorf("snapshots shouldn't be given when updating local repo"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
updatedComponents := published.Components()
|
updatedComponents = published.Components()
|
||||||
for _, component := range updatedComponents {
|
for _, component := range updatedComponents {
|
||||||
published.UpdateLocalRepo(component)
|
published.UpdateLocalRepo(component)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user