Make 'SkipContents' configurable in API. #345

Also add global configuration to disable 'skipContents' by
default for all new published repos/snapshots.
This commit is contained in:
Andrey Smirnov
2016-02-11 13:24:43 +03:00
parent 0339f0fe23
commit f50e008763
10 changed files with 31 additions and 2 deletions
+1
View File
@@ -21,6 +21,7 @@ type ConfigStructure struct {
DownloadSourcePackages bool `json:"downloadSourcePackages"`
PpaDistributorID string `json:"ppaDistributorID"`
PpaCodename string `json:"ppaCodename"`
SkipContentsPublishing bool `json:"skipContentsPublishing"`
S3PublishRoots map[string]S3PublishRoot `json:"S3PublishEndpoints"`
SwiftPublishRoots map[string]SwiftPublishRoot `json:"SwiftPublishEndpoints"`
}
+1
View File
@@ -62,6 +62,7 @@ func (s *ConfigSuite) TestSaveConfig(c *C) {
" \"downloadSourcePackages\": false,\n"+
" \"ppaDistributorID\": \"\",\n"+
" \"ppaCodename\": \"\",\n"+
" \"skipContentsPublishing\": false,\n"+
" \"S3PublishEndpoints\": {\n"+
" \"test\": {\n"+
" \"region\": \"us-east-1\",\n"+