core: pkgrepo: support arbitrarily named pmaports directories
Compare changes
- Caleb Connolly authored
When pmbootstrap starts up, it loads the config file (or uses the defaults) and then merged some arguments (e.g. --work) into it. However in config.init.frontend() we were creating yet another new Config, but it's too late to merge args in at this point... Rework this slightly to fix that major oversight and remove the totally unnecessary hack of calling pmb.config.load() again. This fixes calling pmbootstrap init with --work Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
+ 4
− 8
@@ -83,7 +83,7 @@ def ask_for_username(default_user: str) -> str:
@@ -98,9 +98,7 @@ def ask_for_work_path(args: PmbArgs) -> tuple[Path, bool]:
@@ -697,11 +695,9 @@ def frontend(args: PmbArgs) -> None: