Skip to content
Snippets Groups Projects
Commit 333afe61 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Fix regexp error

parent 89841737
No related branches found
No related tags found
No related merge requests found
...@@ -32,10 +32,10 @@ import string ...@@ -32,10 +32,10 @@ import string
import sys import sys
def getModuleName(s): def getModuleName(s):
m = re.match("^(.*)/__init__\.py$", s) m = re.match("^(.*)/__init__\\.py$", s)
if m: if m:
return m.group(1).replace("/", ".") return m.group(1).replace("/", ".")
m = re.match("^(.*)\.py$", s) m = re.match("^(.*)\\.py$", s)
if m: if m:
return m.group(1).replace("/", ".") return m.group(1).replace("/", ".")
return None return None
......
%undefine source_date_epoch_from_changelog %undefine source_date_epoch_from_changelog
Name: apa Name: apa
Version: 0.4 Version: 0.5
Release: 1 Release: 1
Summary: Anders Python Archiver Summary: Anders Python Archiver
License: GPLv3 License: GPLv3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment