]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix display of password in summary 1446/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Apr 2023 10:07:02 +0000 (12:07 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Apr 2023 10:13:27 +0000 (12:13 +0200)
We would skip reading the file and say "(default)").

mkosi/__init__.py

index 37cb834fc370db323a16cd15282dc5da3f08cd3e..e64b5ba54c405b01c569608bcf42fd7ae594110d 100644 (file)
@@ -995,7 +995,9 @@ def require_private_file(name: Path, description: str) -> None:
 
 
 def find_password(args: argparse.Namespace) -> None:
-    if not needs_build(args) or args.password is not None:
+    if args.password is not None:
+        return
+    if not (args.verb == Verb.summary or needs_build(args)):
         return
 
     try: