diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-03-22 17:06:25 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-03-22 17:06:25 +0000 |
commit | 2f2396a24d5771f49a186494df661034dd87d473 (patch) | |
tree | 338a473ba3743adec290e7e53355cd7ccca60d6d /src | |
parent | 73a9ba83a73cd58ef3c0d935dd50d2e467c392fe (diff) | |
download | bcfg2-2f2396a24d5771f49a186494df661034dd87d473.tar.gz bcfg2-2f2396a24d5771f49a186494df661034dd87d473.tar.bz2 bcfg2-2f2396a24d5771f49a186494df661034dd87d473.zip |
Packages: Implement schema verification
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5137 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-x | src/sbin/bcfg2-repo-validate | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-repo-validate b/src/sbin/bcfg2-repo-validate index e65e7aa78..e04cf6c3c 100755 --- a/src/sbin/bcfg2-repo-validate +++ b/src/sbin/bcfg2-repo-validate @@ -78,6 +78,7 @@ if __name__ == '__main__': services_list = glob.glob("%s/Svcmgr/*.xml" % repo) deps_list = glob.glob("%s/Deps/*.xml" % repo) dec_list = glob.glob("%s/Decisions/*" % repo) + pkgcfg_list = glob.glob("%s/Packages/config.xml" % repo) filesets = {'metadata':(metadata_list, "%s/metadata.xsd"), 'clients':(clients_list, "%s/clients.xsd"), @@ -89,7 +90,9 @@ if __name__ == '__main__': 'imageinfo':(imageinfo_list, "%s/report-configuration.xsd"), 'services':(services_list, "%s/services.xsd"), 'deps':(deps_list, "%s/deps.xsd"), - 'decisions': (dec_list, "%s/decisions.xsd")} + 'decisions': (dec_list, "%s/decisions.xsd"), + 'packages': (pkgcfg_list, "%s/packages.xsd"), + } failures = 0 for k, (filelist, schemaname) in filesets.iteritems(): |