Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__init__.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2023-07-30 00:28:21 +0200
committerGitHub <noreply@github.com>2023-07-30 00:28:21 +0200
commita43344c5ae2249ddb70e535637915b30563c5038 (patch)
tree6183d5820cd09d32e7b24cb7a9eb7a099d4616c6 /archinstall/__init__.py
parent29b528072551f32a0075b3f5c9d91d5ded019534 (diff)
Adding pack packages to profiles after they were removed (#1956)
* Added back xinit for awesome, since it can be used without a greeter, as well as other useful tools we've had in previous releases * Fixing xinitrc for awesome profile * Attempting to grab xorg packages when installing the desktop profile * Spelling error on xorg-server * Fixed sway value error on seat selection
Diffstat (limited to 'archinstall/__init__.py')
-rw-r--r--archinstall/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/__init__.py b/archinstall/__init__.py
index cfaecd16..56f0b278 100644
--- a/archinstall/__init__.py
+++ b/archinstall/__init__.py
@@ -145,12 +145,12 @@ def cleanup_empty_args(args: Union[Namespace, Dict]) -> Dict:
Takes arguments (dictionary or argparse Namespace) and removes any
None values. This ensures clean mergers during dict.update(args)
"""
- if type(args) == Namespace:
+ if type(args) is Namespace:
args = vars(args)
clean_args = {}
for key, val in args.items():
- if type(val) == dict:
+ if isinstance(val, dict):
val = cleanup_empty_args(val)
if val is not None: