From 8e6e0c16876009b7da218469bdc1a15caf9bd16e Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 30 Nov 2004 23:02:50 +0000 Subject: switch to \S to catch all categories 2004/11/30 14:53:33-06:00 anl.gov!desai fixup regex from ccsched (Logical change 1.154) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@685 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Generators/Cfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/Server/Generators/Cfg.py b/src/lib/Server/Generators/Cfg.py index 066ce99f5..41be594c5 100644 --- a/src/lib/Server/Generators/Cfg.py +++ b/src/lib/Server/Generators/Cfg.py @@ -41,7 +41,7 @@ class FileEntry(FileBacked): class ConfigFileEntry(object): '''ConfigFileEntry is a repository entry for a single file, containing all data for all clients.''' - specific = regcompile('(.*/)(?P[\w.]+)\.((H_(?P\w+))|(B(?P\d+)_(?P\w+))|(A(?P\d+)_(?P\w+))|(I(?P\d+)_(?P\w+))|(C(?P\d+)_(?P\w+)))(\.(?Pcat|udiff))?') + specific = regcompile('(.*/)(?P[\w.]+)\.((H_(?P\S+))|(B(?P\d+)_(?P\S+))|(A(?P\d+)_(?P\S+))|(I(?P\d+)_(?P\S+))|(C(?P\d+)_(?P\S+)))(\.(?Pcat|udiff))?$') info = regcompile('^owner:(\s)*(?P\w+)|group:(\s)*(?P\w+)|perms:(\s)*(?P\w+)|encoding:(\s)*(?P\w+)|(?Pparanoid(\s)*)$') def __init__(self, path): -- cgit v1.2.3-1-g7c22