summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-04-16 18:46:37 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-04-16 18:46:37 +0000
commit6310bb96580eb9f110472d72c85c918df552fb61 (patch)
treebc505e7f7102fb7156e78c0e5d92ebe73d3d3ddc /src/sbin
parent417eb92d3c1712a8c925a577e34451d278fcddd7 (diff)
downloadbcfg2-6310bb96580eb9f110472d72c85c918df552fb61.tar.gz
bcfg2-6310bb96580eb9f110472d72c85c918df552fb61.tar.bz2
bcfg2-6310bb96580eb9f110472d72c85c918df552fb61.zip
Fix handling of info.xml files in svn repos
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4544 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/bcfg2-repo-validate6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sbin/bcfg2-repo-validate b/src/sbin/bcfg2-repo-validate
index 3c7bf70e6..a1166e82a 100755
--- a/src/sbin/bcfg2-repo-validate
+++ b/src/sbin/bcfg2-repo-validate
@@ -27,9 +27,9 @@ if __name__ == '__main__':
'''
info_list = []
for root, dirs, files in os.walk('%s/Cfg' % repo):
- for file in files:
- if 'info.xml' in file:
- info_list.append(os.path.join(root, file))
+ for filename in files:
+ if filename.endswith('info.xml'):
+ info_list.append(os.path.join(root, filename))
# get lists of all other xml files to validate
metadata_list = glob.glob("%s/Metadata/groups.xml" % repo)