Allow changing "download sources" option for the mirror. #109

This commit is contained in:
Andrey Smirnov
2014-09-22 19:36:48 +04:00
parent 5e1bd0ff0e
commit fa786332de
5 changed files with 11 additions and 5 deletions
+3
View File
@@ -25,6 +25,8 @@ func aptlyMirrorEdit(cmd *commander.Command, args []string) error {
repo.Filter = flag.Value.String()
case "filter-with-deps":
repo.FilterWithDeps = flag.Value.Get().(bool)
case "with-sources":
repo.DownloadSources = flag.Value.Get().(bool)
}
})
@@ -71,6 +73,7 @@ Example:
cmd.Flag.String("filter", "", "filter packages in mirror")
cmd.Flag.Bool("filter-with-deps", false, "when filtering, include dependencies of matching packages as well")
cmd.Flag.Bool("with-sources", false, "download source packages in addition to binary packages")
return cmd
}