From f996ca3071276b1eeb00bf7b38fe376cbc9ff810 Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Thu, 25 Jun 2009 16:08:07 +0000 Subject: [PATCH] ignore various files properly --- db-config | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/db-config b/db-config index 2908a10..a66fa54 100755 --- a/db-config +++ b/db-config @@ -1030,9 +1030,13 @@ message, please reply so that we may investigate the problem. ignored = (".bak","~",".rpmsave",".rpmnew",".orig") for file in files: + shouldIgnore = False for ignore in ignored: - if file.endswith(ignore): continue - execfile(os.path.join(dir, file)) + if file.endswith(ignore): + shouldIgnore = True + break + if not shouldIgnore: + execfile(os.path.join(dir, file)) if __name__ == '__main__': main() -- 2.47.0