From eb5edd30553fc8feb6464eb0eb2da546586c7e7b Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Thu, 30 Jul 2020 14:14:20 +0200 Subject: [PATCH] cue: fix regex matching for patch and archive HOOKs --- cue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cue.py b/cue.py index cbf1792..7d8db00 100644 --- a/cue.py +++ b/cue.py @@ -539,9 +539,9 @@ def add_dependency(dep): hook = setup[dep + '_HOOK'] hook_file = os.path.join(curdir, hook) if os.path.exists(hook_file): - if re.match(r'.+\\.patch$', hook): + if re.match(r'.+\.patch$', hook): apply_patch(hook_file, cwd=place) - elif re.match(r'.+\\.(zip|7z)$', hook): + elif re.match(r'.+\.(zip|7z)$', hook): extract_archive(hook_file, cwd=place) else: print('Running hook {0} in {1}'.format(hook, place))