Skip to content

Commit

Permalink
Remove quotation marks from package modules
Browse files Browse the repository at this point in the history
For PKG modules required by cmake or autoconf scripts, remove any
quotation marks before using them in pkgconfig().
  • Loading branch information
bwarden committed Jul 18, 2024
1 parent 9f33e63 commit 1bec16f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autospec/buildreq.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def parse_modules_list(modules_string, is_cmake=False):
modules = [m for m in re.split(r'\s*([><]?=|\${?[^}]*}?)\s*', modules_string)]
modules = filter(None, modules)
else:
modules = [m.strip('[]') for m in modules_string.split()]
modules = [m.strip('[]').strip('"') for m in modules_string.split()]
res = []
next_is_ver = False
for mod in modules:
Expand Down

0 comments on commit 1bec16f

Please sign in to comment.