From 21123ac6a4703ff028e4afbb1a18d8b4485fbed0 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Mon, 17 Feb 2014 15:08:21 +0400 Subject: [PATCH] Add config option to follow dependency to source packages. --- utils/config.go | 2 ++ utils/config_test.go | 1 + 2 files changed, 3 insertions(+) diff --git a/utils/config.go b/utils/config.go index 6d4b83ec..01c8439e 100644 --- a/utils/config.go +++ b/utils/config.go @@ -14,6 +14,7 @@ type ConfigStructure struct { DepFollowSuggests bool `json:"dependencyFollowSuggests"` DepFollowRecommends bool `json:"dependencyFollowRecommends"` DepFollowAllVariants bool `json:"dependencyFollowAllVariants"` + DepFollowSource bool `json:"dependencyFollowSource"` GpgDisableSign bool `json:"gpgDisableSign"` GpgDisableVerify bool `json:"gpgDisableVerify"` DownloadSourcePackages bool `json:"downloadSourcePackages"` @@ -27,6 +28,7 @@ var Config = ConfigStructure{ DepFollowSuggests: false, DepFollowRecommends: false, DepFollowAllVariants: false, + DepFollowSource: false, GpgDisableSign: false, GpgDisableVerify: false, DownloadSourcePackages: false, diff --git a/utils/config_test.go b/utils/config_test.go index db406d06..bfc28304 100644 --- a/utils/config_test.go +++ b/utils/config_test.go @@ -48,6 +48,7 @@ func (s *ConfigSuite) TestSaveConfig(c *C) { " \"dependencyFollowSuggests\": false,\n"+ " \"dependencyFollowRecommends\": false,\n"+ " \"dependencyFollowAllVariants\": false,\n"+ + " \"dependencyFollowSource\": false,\n"+ " \"gpgDisableSign\": false,\n"+ " \"gpgDisableVerify\": false,\n"+ " \"downloadSourcePackages\": false\n"+