From a2e93cca6c87142ad777e4e4d46cbdd01f0f4bd9 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 6 Feb 2007 15:41:33 +0000 Subject: Fix :info files git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2786 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Plugins/Cfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/Server/Plugins/Cfg.py b/src/lib/Server/Plugins/Cfg.py index 5d0ebb2ac..26db3fb9c 100644 --- a/src/lib/Server/Plugins/Cfg.py +++ b/src/lib/Server/Plugins/Cfg.py @@ -114,7 +114,7 @@ class ConfigFileEntry(object): '''add new file additions for a single cf file''' basename = name.split('/')[-1] rbasename = self.repopath.split('/')[-1] - if not ((basename not in [':info', 'info']) or + if not ((basename in [':info', 'info']) or (basename[:len(rbasename)] == rbasename)): logger.error("Confused about file %s; ignoring" % (name)) return -- cgit v1.2.3-1-g7c22