Skip to content

Commit

Permalink
Format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Dec 16, 2023
1 parent 810aff6 commit ec5cece
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion toltec/hooks/install_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def post_package(

add_method("is-enabled", 'systemctl --quiet is-enabled "$1" 2> /dev/null')
add_method(
"is-masked", '[[ "$(systemctl is-enabled "$1" 2> /dev/null)" == "masked" ]]'
"is-masked",
'[[ "$(systemctl is-enabled "$1" 2> /dev/null)" == "masked" ]]',
)
add_method("is-active", 'systemctl --quiet is-active "$1" 2> /dev/null')
add_method(
Expand Down
6 changes: 5 additions & 1 deletion toltec/hooks/patch_rm2fb.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ def post_build(builder: Builder, recipe: Recipe, src_dir: str) -> None:
dynamic = info.get_section_by_name(".dynamic")
rodata = info.get_section_by_name(".rodata")

if dynamic and rodata and rodata.data().find(b"/dev/fb0") != -1:
if (
dynamic
and rodata
and rodata.data().find(b"/dev/fb0") != -1
):
binaries.append(file_path)
except ELFError:
# Ignore non-ELF files
Expand Down

0 comments on commit ec5cece

Please sign in to comment.