forked from Mirror/pmbootstrap
Allow overriding pmaports path in pmbootstrap.cfg (!1728)
Make it possible to point the pmaports dir to an existing repository clone, while not having to give the --aports/-p parameter with every command. pmbootstrap --aports=/my/pmaports/path init If the config file exists already, the dir can also be set with: pmbootstrap config aports /my/pmaports/path
This commit is contained in:
parent
dfaca1e06f
commit
c4b4aa7252
2 changed files with 5 additions and 2 deletions
|
@ -47,11 +47,11 @@ pmaports_min_version = "1"
|
||||||
# see migrate_work_folder()).
|
# see migrate_work_folder()).
|
||||||
work_version = 3
|
work_version = 3
|
||||||
|
|
||||||
# Only save keys to the config file, which we ask for in 'pmbootstrap init'.
|
# Keys saved in the config file (mostly what we ask in 'pmbootstrap init')
|
||||||
config_keys = ["ccache_size", "device", "extra_packages", "hostname", "jobs",
|
config_keys = ["ccache_size", "device", "extra_packages", "hostname", "jobs",
|
||||||
"kernel", "keymap", "nonfree_firmware", "nonfree_userland",
|
"kernel", "keymap", "nonfree_firmware", "nonfree_userland",
|
||||||
"qemu_native_mesa_driver", "ssh_keys", "timezone", "ui", "user",
|
"qemu_native_mesa_driver", "ssh_keys", "timezone", "ui", "user",
|
||||||
"work"]
|
"work", "aports"]
|
||||||
|
|
||||||
# Config file/commandline default values
|
# Config file/commandline default values
|
||||||
# $WORK gets replaced with the actual value for args.work (which may be
|
# $WORK gets replaced with the actual value for args.work (which may be
|
||||||
|
|
|
@ -369,6 +369,9 @@ def frontend(args):
|
||||||
# SSH keys
|
# SSH keys
|
||||||
cfg["pmbootstrap"]["ssh_keys"] = str(ask_for_ssh_keys(args))
|
cfg["pmbootstrap"]["ssh_keys"] = str(ask_for_ssh_keys(args))
|
||||||
|
|
||||||
|
# pmaports path (if users change it with: 'pmbootstrap --aports=... init')
|
||||||
|
cfg["pmbootstrap"]["aports"] = args.aports
|
||||||
|
|
||||||
# Save config
|
# Save config
|
||||||
pmb.config.save(args, cfg)
|
pmb.config.save(args, cfg)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue