From: Marc Fiuczynski Date: Thu, 25 Jun 2009 16:08:07 +0000 (+0000) Subject: ignore various files properly X-Git-Tag: MyPLC-4.3-16~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f996ca3071276b1eeb00bf7b38fe376cbc9ff810;p=myplc.git ignore various files properly --- 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()