Skip to content

Commit

Permalink
fix: detect unquoted pkgdir/srcdir when {} are used
Browse files Browse the repository at this point in the history
  • Loading branch information
FFY00 committed Sep 27, 2018
1 parent 07c0de2 commit 72e82bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgcheck/pkgcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def check_conditional_expression(line, report):

def check_unquoted(line, report):
quoted = False
for m in re.compile(r'"|\$(pkgdir|srcdir)|"').finditer(line):
for m in re.compile(r'"|\$(|{).*(pkgdir|srcdir)|"').finditer(line):
if m.group() == '"':
quoted = not quoted
elif not quoted:
Expand Down

0 comments on commit 72e82bb

Please sign in to comment.