mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-04 05:10:40 +00:00
- #309 adding gpgKeys config key, accepting array of keyRef, cli args has precedence
- #691 adding handling of multiple keyRefs when signing with gpg
This commit is contained in:
+5
-3
@@ -49,9 +49,10 @@ type ConfigStructure struct { // nolint: maligned
|
||||
DownloadSourcePackages bool `json:"downloadSourcePackages" yaml:"download_sourcepackages"`
|
||||
|
||||
// Signing
|
||||
GpgProvider string `json:"gpgProvider" yaml:"gpg_provider"`
|
||||
GpgDisableSign bool `json:"gpgDisableSign" yaml:"gpg_disable_sign"`
|
||||
GpgDisableVerify bool `json:"gpgDisableVerify" yaml:"gpg_disable_verify"`
|
||||
GpgProvider string `json:"gpgProvider" yaml:"gpg_provider"`
|
||||
GpgDisableSign bool `json:"gpgDisableSign" yaml:"gpg_disable_sign"`
|
||||
GpgDisableVerify bool `json:"gpgDisableVerify" yaml:"gpg_disable_verify"`
|
||||
GpgKeys []string `json:"gpgKeys" yaml:"gpg_keys"`
|
||||
|
||||
// Publishing
|
||||
SkipContentsPublishing bool `json:"skipContentsPublishing" yaml:"skip_contents_publishing"`
|
||||
@@ -226,6 +227,7 @@ var Config = ConfigStructure{
|
||||
GpgProvider: "gpg",
|
||||
GpgDisableSign: false,
|
||||
GpgDisableVerify: false,
|
||||
GpgKeys: []string{},
|
||||
DownloadSourcePackages: false,
|
||||
PackagePoolStorage: PackagePoolStorage{
|
||||
Local: &LocalPoolStorage{Path: ""},
|
||||
|
||||
@@ -102,6 +102,7 @@ func (s *ConfigSuite) TestSaveConfig(c *C) {
|
||||
" \"gpgProvider\": \"gpg\",\n"+
|
||||
" \"gpgDisableSign\": false,\n"+
|
||||
" \"gpgDisableVerify\": false,\n"+
|
||||
" \"gpgKeys\": null,\n"+
|
||||
" \"skipContentsPublishing\": false,\n"+
|
||||
" \"skipBz2Publishing\": false,\n"+
|
||||
" \"FileSystemPublishEndpoints\": {\n"+
|
||||
@@ -267,6 +268,7 @@ func (s *ConfigSuite) TestSaveYAML2Config(c *C) {
|
||||
"gpg_provider: \"\"\n"+
|
||||
"gpg_disable_sign: false\n"+
|
||||
"gpg_disable_verify: false\n"+
|
||||
"gpg_keys: []\n"+
|
||||
"skip_contents_publishing: false\n"+
|
||||
"skip_bz2_publishing: false\n"+
|
||||
"filesystem_publish_endpoints: {}\n"+
|
||||
@@ -322,6 +324,7 @@ download_sourcepackages: true
|
||||
gpg_provider: gpg
|
||||
gpg_disable_sign: true
|
||||
gpg_disable_verify: true
|
||||
gpg_keys: []
|
||||
skip_contents_publishing: true
|
||||
skip_bz2_publishing: true
|
||||
filesystem_publish_endpoints:
|
||||
|
||||
Reference in New Issue
Block a user