From 681fcfe77598286757a77dae6dcf71ba6ab5f020 Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Sun, 30 Apr 2023 17:29:25 +0100 Subject: [PATCH] config: sort config_keys and fix layout Adjust the layout to match the formatting of other options and sort the array. Reviewed-by: Oliver Smith Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230418-build-default-arch-v5-1-5223fab65867@postmarketos.org%3E --- pmb/config/__init__.py | 54 ++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/pmb/config/__init__.py b/pmb/config/__init__.py index 06997d9f..478c9bd9 100644 --- a/pmb/config/__init__.py +++ b/pmb/config/__init__.py @@ -60,32 +60,34 @@ required_programs = [ sudo = which_sudo() # Keys saved in the config file (mostly what we ask in 'pmbootstrap init') -config_keys = ["aports", - "ccache_size", - "device", - "extra_packages", - "hostname", - "build_pkgs_on_install", - "is_default_channel", - "jobs", - "kernel", - "keymap", - "locale", - "mirror_alpine", - "mirrors_postmarketos", - "nonfree_firmware", - "nonfree_userland", - "ssh_keys", - "ssh_key_glob", - "timezone", - "ui", - "ui_extras", - "user", - "work", - "boot_size", - "extra_space", - "sudo_timer", - "qemu_redir_stdio"] +config_keys = [ + "aports", + "boot_size", + "build_pkgs_on_install", + "ccache_size", + "device", + "extra_packages", + "extra_space", + "hostname", + "is_default_channel", + "jobs", + "kernel", + "keymap", + "locale", + "mirror_alpine", + "mirrors_postmarketos", + "nonfree_firmware", + "nonfree_userland", + "qemu_redir_stdio", + "ssh_key_glob", + "ssh_keys", + "sudo_timer", + "timezone", + "ui", + "ui_extras", + "user", + "work", +] # Config file/commandline default values # $WORK gets replaced with the actual value for args.work (which may be