summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-03-22 17:06:25 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-03-22 17:06:25 +0000
commit2f2396a24d5771f49a186494df661034dd87d473 (patch)
tree338a473ba3743adec290e7e53355cd7ccca60d6d /src
parent73a9ba83a73cd58ef3c0d935dd50d2e467c392fe (diff)
downloadbcfg2-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-xsrc/sbin/bcfg2-repo-validate5
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():