diff options
author | Jason Albert <albertj@us.ibm.com> | 2015-03-21 11:11:21 -0500 |
---|---|---|
committer | Jason Albert <albertj@us.ibm.com> | 2015-03-21 11:11:21 -0500 |
commit | 06d1a6f31fa9d3ae53cf4ef193a6801033cdf365 (patch) | |
tree | 5c02635a0ba8dbfa5f40803622fa9663b905270c /reverseVpd.py | |
parent | 776368e23871a380ab6778bf53bd0f83dd76273a (diff) | |
download | vpdtools-06d1a6f31fa9d3ae53cf4ef193a6801033cdf365.tar.gz vpdtools-06d1a6f31fa9d3ae53cf4ef193a6801033cdf365.zip |
Added call to xmllint to fix busted ET formatting
Diffstat (limited to 'reverseVpd.py')
-rwxr-xr-x | reverseVpd.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/reverseVpd.py b/reverseVpd.py index 41862b3..02a2c25 100755 --- a/reverseVpd.py +++ b/reverseVpd.py @@ -283,3 +283,9 @@ tvpdFileName = clOutputPath + "/" + vpdName + ".tvpd" writeTvpd(vpd, tvpdFileName) out.msg("Wrote tvpd file: %s" % tvpdFileName) +# Now rip it through xmllint quick to cleanup formatting problems from the ET print +rc = os.system("xmllint --format %s -o %s" % (tvpdFileName, tvpdFileName)) +if (rc): + out.error("Unable to call xmllint to fixing xml formatting") + exit(rc) + |