Add config option to follow dependency to source packages.

This commit is contained in:
Andrey Smirnov
2014-02-17 15:08:21 +04:00
parent c96491e873
commit 21123ac6a4
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -14,6 +14,7 @@ type ConfigStructure struct {
DepFollowSuggests bool `json:"dependencyFollowSuggests"` DepFollowSuggests bool `json:"dependencyFollowSuggests"`
DepFollowRecommends bool `json:"dependencyFollowRecommends"` DepFollowRecommends bool `json:"dependencyFollowRecommends"`
DepFollowAllVariants bool `json:"dependencyFollowAllVariants"` DepFollowAllVariants bool `json:"dependencyFollowAllVariants"`
DepFollowSource bool `json:"dependencyFollowSource"`
GpgDisableSign bool `json:"gpgDisableSign"` GpgDisableSign bool `json:"gpgDisableSign"`
GpgDisableVerify bool `json:"gpgDisableVerify"` GpgDisableVerify bool `json:"gpgDisableVerify"`
DownloadSourcePackages bool `json:"downloadSourcePackages"` DownloadSourcePackages bool `json:"downloadSourcePackages"`
@@ -27,6 +28,7 @@ var Config = ConfigStructure{
DepFollowSuggests: false, DepFollowSuggests: false,
DepFollowRecommends: false, DepFollowRecommends: false,
DepFollowAllVariants: false, DepFollowAllVariants: false,
DepFollowSource: false,
GpgDisableSign: false, GpgDisableSign: false,
GpgDisableVerify: false, GpgDisableVerify: false,
DownloadSourcePackages: false, DownloadSourcePackages: false,
+1
View File
@@ -48,6 +48,7 @@ func (s *ConfigSuite) TestSaveConfig(c *C) {
" \"dependencyFollowSuggests\": false,\n"+ " \"dependencyFollowSuggests\": false,\n"+
" \"dependencyFollowRecommends\": false,\n"+ " \"dependencyFollowRecommends\": false,\n"+
" \"dependencyFollowAllVariants\": false,\n"+ " \"dependencyFollowAllVariants\": false,\n"+
" \"dependencyFollowSource\": false,\n"+
" \"gpgDisableSign\": false,\n"+ " \"gpgDisableSign\": false,\n"+
" \"gpgDisableVerify\": false,\n"+ " \"gpgDisableVerify\": false,\n"+
" \"downloadSourcePackages\": false\n"+ " \"downloadSourcePackages\": false\n"+