From 672e143437aee30c5d50cdc4bb6083f864f08ee9 Mon Sep 17 00:00:00 2001 From: Tommy Reynolds Date: Fri, 20 Jan 2006 17:36:37 +0000 Subject: Added "validate_rpm_info" function to "fdpsh" to validate the "rpm-info.xml" file. Errors are displayed, or an "OK" token if the validation succeeds. --- bin/fdp-functions | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') diff --git a/bin/fdp-functions b/bin/fdp-functions index 09ab50a..836c339 100644 --- a/bin/fdp-functions +++ b/bin/fdp-functions @@ -80,3 +80,7 @@ iso2date() { get_latest_revision() { version $@ } + +validate_rpm_info() { + xmllint --noout --valid ${RPMINFO} && echo ${RPMINFO} OK +} -- cgit