Short syntax for aptly mirror create to support ppa:user/project mirror URLs.

This commit is contained in:
Andrey Smirnov
2014-03-06 21:06:50 +04:00
parent 92c3bf0220
commit bed0ac475e
5 changed files with 116 additions and 3 deletions
+4
View File
@@ -18,6 +18,8 @@ type ConfigStructure struct {
GpgDisableSign bool `json:"gpgDisableSign"`
GpgDisableVerify bool `json:"gpgDisableVerify"`
DownloadSourcePackages bool `json:"downloadSourcePackages"`
PpaDistributorID string `json:"ppaDistributorID"`
PpaCodename string `json:"ppaCodename"`
}
// Config is configuration for aptly, shared by all modules
@@ -32,6 +34,8 @@ var Config = ConfigStructure{
GpgDisableSign: false,
GpgDisableVerify: false,
DownloadSourcePackages: false,
PpaDistributorID: "ubuntu",
PpaCodename: "",
}
// LoadConfig loads configuration from json file
+3 -1
View File
@@ -51,7 +51,9 @@ func (s *ConfigSuite) TestSaveConfig(c *C) {
" \"dependencyFollowSource\": false,\n"+
" \"gpgDisableSign\": false,\n"+
" \"gpgDisableVerify\": false,\n"+
" \"downloadSourcePackages\": false\n"+
" \"downloadSourcePackages\": false,\n"+
" \"ppaDistributorID\": \"\",\n"+
" \"ppaCodename\": \"\"\n"+
"}")
}