mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
b1aeca5db0
In order to further deduplicate the contents of the various unit files, we need to be able to merge multiple additional units into the initial one. Luckily the merge logic is in no way constrained to working with just two units, so achieving this is pretty much just a matter of lifting the existing limitation on the number of arguments that the script accepts. As a special case, it's now also possible to call the script with just the base unit as argument. No merging will be performed in that case, obviously, but we'll still go through the basic validation and cleanup steps. This also fixes a bug in the check for the number of arguments: sys.argv also contains the name of the script, so we should have checked that its size was at least 3. The check is now written in a way that's less prone to misunderstandings. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com> |
||
---|---|---|
.. | ||
apibuild.py | ||
augeas-gentest.py | ||
check-aclperms.py | ||
check-aclrules.py | ||
check-driverimpls.py | ||
check-drivername.py | ||
check-file-access.py | ||
check-html-references.py | ||
check-pot.py | ||
check-remote-protocol.py | ||
check-symfile.py | ||
check-symsorting.py | ||
cocci-macro-file.h | ||
dtrace2systemtap.py | ||
esx_vi_generator.py | ||
genaclperms.py | ||
genpolkit.py | ||
gensystemtap.py | ||
group-qemu-caps.py | ||
header-ifdef.py | ||
hvsupport.py | ||
hyperv_wmi_generator.py | ||
merge-systemd-units.py | ||
meson-dist.py | ||
meson-gen-authors.py | ||
meson-gen-def.py | ||
meson-gen-sym.py | ||
meson-install-dirs.py | ||
meson-install-symlink.py | ||
meson-install-web.py | ||
meson-python.sh | ||
meson-timestamp.py | ||
meson.build | ||
mock-noinline.py | ||
prohibit-duplicate-header.py |