forked from Mirror/pmbootstrap
config: clean up parsing and add mirrors (MR 2252)
Add a new config section "mirrors", to replace the mirrors_alpine and mirrors_postmarketos options. This will allow for more flexibility since we can then handle the systemd staging repo (and others like plasma nightly) with relative ease. The loading/saving is fixed and now properly avoids writing out default values, this way if the defaults are changed the user won't be stuck with old values in their pmbootstrap.cfg. Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
8e18b16370
commit
7a8deb0f5e
5 changed files with 114 additions and 14 deletions
|
@ -924,8 +924,8 @@ def get_parser():
|
|||
help="Reset config options with the given name to it's"
|
||||
" default.")
|
||||
config.add_argument("name", nargs="?", help="variable name, one of: " +
|
||||
", ".join(sorted(pmb.config.config_keys)),
|
||||
choices=pmb.config.config_keys, metavar="name")
|
||||
", ".join(sorted(Config.keys())),
|
||||
choices=Config.keys(), metavar="name")
|
||||
config.add_argument("value", nargs="?", help="set variable to value")
|
||||
|
||||
# Action: bootimg_analyze
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue