mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Enable SkipArchitectureCheck and IgnoreSignatures in mirror API
This commit is contained in:
@@ -58,3 +58,4 @@ List of contributors, in chronological order:
|
|||||||
* Ryan Gonzalez (https://github.com/refi64)
|
* Ryan Gonzalez (https://github.com/refi64)
|
||||||
* Paul Cacheux (https://github.com/paulcacheux)
|
* Paul Cacheux (https://github.com/paulcacheux)
|
||||||
* Nic Waller (https://github.com/sf-nwaller)
|
* Nic Waller (https://github.com/sf-nwaller)
|
||||||
|
* iofq (https://github.com/iofq)
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ func apiMirrorsCreate(c *gin.Context) {
|
|||||||
DownloadInstaller bool
|
DownloadInstaller bool
|
||||||
FilterWithDeps bool
|
FilterWithDeps bool
|
||||||
SkipComponentCheck bool
|
SkipComponentCheck bool
|
||||||
|
SkipArchitectureCheck bool
|
||||||
IgnoreSignatures bool
|
IgnoreSignatures bool
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,6 +106,7 @@ func apiMirrorsCreate(c *gin.Context) {
|
|||||||
repo.Filter = b.Filter
|
repo.Filter = b.Filter
|
||||||
repo.FilterWithDeps = b.FilterWithDeps
|
repo.FilterWithDeps = b.FilterWithDeps
|
||||||
repo.SkipComponentCheck = b.SkipComponentCheck
|
repo.SkipComponentCheck = b.SkipComponentCheck
|
||||||
|
repo.SkipArchitectureCheck = b.SkipArchitectureCheck
|
||||||
repo.DownloadSources = b.DownloadSources
|
repo.DownloadSources = b.DownloadSources
|
||||||
repo.DownloadUdebs = b.DownloadUdebs
|
repo.DownloadUdebs = b.DownloadUdebs
|
||||||
|
|
||||||
@@ -285,6 +287,7 @@ func apiMirrorsUpdate(c *gin.Context) {
|
|||||||
DownloadSources bool
|
DownloadSources bool
|
||||||
DownloadUdebs bool
|
DownloadUdebs bool
|
||||||
SkipComponentCheck bool
|
SkipComponentCheck bool
|
||||||
|
SkipArchitectureCheck bool
|
||||||
IgnoreChecksums bool
|
IgnoreChecksums bool
|
||||||
IgnoreSignatures bool
|
IgnoreSignatures bool
|
||||||
ForceUpdate bool
|
ForceUpdate bool
|
||||||
@@ -304,11 +307,14 @@ func apiMirrorsUpdate(c *gin.Context) {
|
|||||||
b.DownloadUdebs = remote.DownloadUdebs
|
b.DownloadUdebs = remote.DownloadUdebs
|
||||||
b.DownloadSources = remote.DownloadSources
|
b.DownloadSources = remote.DownloadSources
|
||||||
b.SkipComponentCheck = remote.SkipComponentCheck
|
b.SkipComponentCheck = remote.SkipComponentCheck
|
||||||
|
b.SkipArchitectureCheck = remote.SkipArchitectureCheck
|
||||||
b.FilterWithDeps = remote.FilterWithDeps
|
b.FilterWithDeps = remote.FilterWithDeps
|
||||||
b.Filter = remote.Filter
|
b.Filter = remote.Filter
|
||||||
b.Architectures = remote.Architectures
|
b.Architectures = remote.Architectures
|
||||||
b.Components = remote.Components
|
b.Components = remote.Components
|
||||||
|
|
||||||
|
b.IgnoreSignatures = context.Config().GpgDisableVerify
|
||||||
|
|
||||||
log.Info().Msgf("%s: Starting mirror update\n", b.Name)
|
log.Info().Msgf("%s: Starting mirror update\n", b.Name)
|
||||||
|
|
||||||
if c.Bind(&b) != nil {
|
if c.Bind(&b) != nil {
|
||||||
@@ -338,6 +344,7 @@ func apiMirrorsUpdate(c *gin.Context) {
|
|||||||
remote.DownloadUdebs = b.DownloadUdebs
|
remote.DownloadUdebs = b.DownloadUdebs
|
||||||
remote.DownloadSources = b.DownloadSources
|
remote.DownloadSources = b.DownloadSources
|
||||||
remote.SkipComponentCheck = b.SkipComponentCheck
|
remote.SkipComponentCheck = b.SkipComponentCheck
|
||||||
|
remote.SkipArchitectureCheck = b.SkipArchitectureCheck
|
||||||
remote.FilterWithDeps = b.FilterWithDeps
|
remote.FilterWithDeps = b.FilterWithDeps
|
||||||
remote.Filter = b.Filter
|
remote.Filter = b.Filter
|
||||||
remote.Architectures = b.Architectures
|
remote.Architectures = b.Architectures
|
||||||
|
|||||||
Reference in New Issue
Block a user