]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilterxml2firewalldata: Use internal wrapping to wrap output files
authorPeter Krempa <pkrempa@redhat.com>
Tue, 6 Apr 2021 12:19:40 +0000 (14:19 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 12 Apr 2021 13:55:10 +0000 (15:55 +0200)
commit13ffa48d2fb18d1f23338fed721442421abf56c6
tree351d031b48870a4966902b812db411d062dfb7e5
parent49c505a2e07587b6b1a5bca255cfac0fb910b320
nwfilterxml2firewalldata: Use internal wrapping to wrap output files

As with previous commits use virCommandSetDryRun to invoke
virCommandToString so that it returns pre-wrapped string.

Since virCommand is better aware of where the arguments terminate we can
see an improvement where comments are no longer line-wrapped.

The changes to the 'commonRules' strings were done with the following
regex:

 s/ -/ \\\\\\n-/

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
build-aux/syntax-check.mk
tests/nwfilterxml2firewalldata/comment-linux.args
tests/nwfilterxml2firewalldata/target-linux.args
tests/nwfilterxml2firewalltest.c