summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-01-20 17:36:37 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-01-20 17:36:37 +0000
commit672e143437aee30c5d50cdc4bb6083f864f08ee9 (patch)
treeb6146bbaa423a739ae5f167b6e96931f8d1845b4 /bin
parent3b7585ee068f06a8dfa4d2c74c3f29db2c2c6deb (diff)
downloadfedora-doc-utils-672e143437aee30c5d50cdc4bb6083f864f08ee9.tar.gz
fedora-doc-utils-672e143437aee30c5d50cdc4bb6083f864f08ee9.tar.xz
fedora-doc-utils-672e143437aee30c5d50cdc4bb6083f864f08ee9.zip
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.
Diffstat (limited to 'bin')
-rw-r--r--bin/fdp-functions4
1 files changed, 4 insertions, 0 deletions
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
+}