Skip to content

Commit

Permalink
fix: linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed May 12, 2024
1 parent b6b102c commit ef657e9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions pep600_compliance/images/package_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,12 @@ def _update(self, container):
)
assert exit_code == 0, output.decode("utf-8")
exit_code, output = container.exec_run(
["sed", "-i", "s/CHECKGPG=on/CHECKGPG=off/g", "/etc/slackpkg/slackpkg.conf"]
[
"sed",
"-i",
"s/CHECKGPG=on/CHECKGPG=off/g",
"/etc/slackpkg/slackpkg.conf",
]
)
assert exit_code == 0, output.decode("utf-8")
super()._update(container)
Expand All @@ -185,4 +190,8 @@ def _upgrade(self, container):
exit_code, output = container.exec_run(
["slackpkg", "-default_answer=yes", "-batch=on", "upgrade-all"]
)
assert exit_code in {0, 20, 50}, f"exit_code: {exit_code}\n" + output.decode("utf-8")
assert exit_code in {
0,
20,
50,
}, f"exit_code: {exit_code}\n" + output.decode("utf-8")

0 comments on commit ef657e9

Please sign in to comment.