]> git.proxmox.com Git - pmg-api.git/commit
system report: skip irrelevant files in /etc/pmg/templates
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 7 Jul 2023 16:54:27 +0000 (18:54 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 11 Jul 2023 15:50:53 +0000 (17:50 +0200)
commit24db9ea49591ddd0207ce2259225b438e298f156
tree23cd8d463db3e104f092b2872dca2c4433e8eb36
parent11398ae53d814a2e16a714bacdcc5038f3a50a45
system report: skip irrelevant files in /etc/pmg/templates

This patch removes:
* templates which have no changes to the ones in
  /var/lib/pmg/templates
* files generated by ucf

from the report. Unmodified files are reported, so that the user can
remove them.

This should make providing support a bit easier - as currenlty I'd
copy each template from the report to `diff` it with the version in
the package, for finding out if there is something relevant.

the new dump_template sub was copied from dir_to_text, in order to
explicitly write which files are skipped.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
 [T: merge in helper method for getting the unmodified templates ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PMG/Report.pm