]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ukify: Require specifying --tools for each tools directory 25912/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 2 Jan 2023 13:53:47 +0000 (14:53 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 2 Jan 2023 13:53:47 +0000 (14:53 +0100)
Instead of consuming N arguments as tools directories, let's always
only consume one argument per specification of --tools. This avoids
issues where the linux image and initrd are interpreted as tools
directories.

src/ukify/ukify.py

index e1ee7106c17f3026c4bcdec76d2324844b6525de..2493de2a40f0f546deaa7fd4b82f38a03b418b28 100755 (executable)
@@ -687,7 +687,7 @@ usage: ukify [options…] linux initrd…
 
     p.add_argument('--tools',
                    type=pathlib.Path,
-                   nargs='+',
+                   action='append',
                    help='Directories to search for tools (systemd-measure, llvm-objcopy, ...)')
 
     p.add_argument('--output', '-o',