Skip to content

Commit

Permalink
Update package_linter.py: fix incorrect match for systemctl enable/di…
Browse files Browse the repository at this point in the history
…sable without --quiet, reporting the new ynh_systemctl syntax
  • Loading branch information
alexAubin authored Sep 14, 2024
1 parent 7397376 commit e9ecc22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2585,7 +2585,7 @@ def quiet_systemctl_enable(self):
systemctl_enable = [
line
for line in [" ".join(line) for line in self.lines]
if re.search(r"systemctl.*(enable|disable)", line)
if re.search(r"^\s*systemctl.*(enable|disable)", line)
]

if any("-q" not in cmd for cmd in systemctl_enable):
Expand Down

0 comments on commit e9ecc22

Please sign in to comment.