Skip to content

Commit

Permalink
csmock: fix insufficient regex escaping in extra_build_repos()
Browse files Browse the repository at this point in the history
... to eliminate the following warning on Fedora 39:
```
% csmock -l
/usr/bin/csmock:180: SyntaxWarning: invalid escape sequence '\.'
  m = re.match("^.*/(.*\.module\\+el.*)\\.src\\.rpm$", srpm)
coverity        Proprietary static analyzer providing good signal-to-noise ratio for multiple programming languages.
gcc             Plugin capturing GCC warnings, optionally with customized compiler flags.
```

Reported-by: Lukáš Zaoral
Closes: #143
  • Loading branch information
kdudka committed Dec 6, 2023
1 parent 73eddc1 commit 869b800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/csmock
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def extra_build_repos(results, srpm):
urls = []

# check for a module build
m = re.match("^.*/(.*\.module\\+el.*)\\.src\\.rpm$", srpm)
m = re.match(r"^.*/(.*\.module\+el.*)\.src\.rpm$", srpm)
if m:
nvr = m.group(1)
repo_url = prepare_module_build_repo(results, nvr)
Expand Down

0 comments on commit 869b800

Please sign in to comment.