docs-common/bin fdp-functions,1.4,1.5
Tommy Reynolds (jtr)
fedora-docs-commits at redhat.com
Fri Jan 20 17:36:44 UTC 2006
Author: jtr
Update of /cvs/docs/docs-common/bin
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19227
Modified Files:
fdp-functions
Log Message:
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.
Index: fdp-functions
===================================================================
RCS file: /cvs/docs/docs-common/bin/fdp-functions,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- fdp-functions 19 Jan 2006 14:48:34 -0000 1.4
+++ fdp-functions 20 Jan 2006 17:36:37 -0000 1.5
@@ -80,3 +80,7 @@
get_latest_revision() {
version $@
}
+
+validate_rpm_info() {
+ xmllint --noout --valid ${RPMINFO} && echo ${RPMINFO} OK
+}
More information about the Fedora-docs-commits
mailing list