Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sebaubuntu_libs/libaik/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
#
"""AIK wrapper library."""

from git import Repo
from pathlib import Path
from platform import system
from sebaubuntu_libs.liblogging import LOGI
from shutil import which
from subprocess import check_output, STDOUT, CalledProcessError
from tempfile import TemporaryDirectory
from typing import Optional

Check failure on line 14 in sebaubuntu_libs/libaik/__init__.py

View workflow job for this annotation

GitHub Actions / ruff-check

ruff (I001)

sebaubuntu_libs/libaik/__init__.py:7:1: I001 Import block is un-sorted or un-formatted help: Organize imports

AIK_REPO = "https://github.com/SebaUbuntu/AIK-Linux-mirror"

Expand All @@ -24,15 +24,15 @@
class AIKImageInfo:
def __init__(
self,
base_address: Optional[str],

Check failure on line 27 in sebaubuntu_libs/libaik/__init__.py

View workflow job for this annotation

GitHub Actions / ruff-check

ruff (UP045)

sebaubuntu_libs/libaik/__init__.py:27:23: UP045 Use `X | None` for type annotations help: Convert to `X | None`
board_name: Optional[str],

Check failure on line 28 in sebaubuntu_libs/libaik/__init__.py

View workflow job for this annotation

GitHub Actions / ruff-check

ruff (UP045)

sebaubuntu_libs/libaik/__init__.py:28:21: UP045 Use `X | None` for type annotations help: Convert to `X | None`
cmdline: Optional[str],

Check failure on line 29 in sebaubuntu_libs/libaik/__init__.py

View workflow job for this annotation

GitHub Actions / ruff-check

ruff (UP045)

sebaubuntu_libs/libaik/__init__.py:29:18: UP045 Use `X | None` for type annotations help: Convert to `X | None`
dt: Optional[Path],

Check failure on line 30 in sebaubuntu_libs/libaik/__init__.py

View workflow job for this annotation

GitHub Actions / ruff-check

ruff (UP045)

sebaubuntu_libs/libaik/__init__.py:30:13: UP045 Use `X | None` for type annotations help: Convert to `X | None`
dtb: Optional[Path],

Check failure on line 31 in sebaubuntu_libs/libaik/__init__.py

View workflow job for this annotation

GitHub Actions / ruff-check

ruff (UP045)

sebaubuntu_libs/libaik/__init__.py:31:14: UP045 Use `X | None` for type annotations help: Convert to `X | None`
dtb_offset: Optional[str],

Check failure on line 32 in sebaubuntu_libs/libaik/__init__.py

View workflow job for this annotation

GitHub Actions / ruff-check

ruff (UP045)

sebaubuntu_libs/libaik/__init__.py:32:21: UP045 Use `X | None` for type annotations help: Convert to `X | None`
dtbo: Optional[Path],

Check failure on line 33 in sebaubuntu_libs/libaik/__init__.py

View workflow job for this annotation

GitHub Actions / ruff-check

ruff (UP045)

sebaubuntu_libs/libaik/__init__.py:33:15: UP045 Use `X | None` for type annotations help: Convert to `X | None`
header_version: Optional[str],

Check failure on line 34 in sebaubuntu_libs/libaik/__init__.py

View workflow job for this annotation

GitHub Actions / ruff-check

ruff (UP045)

sebaubuntu_libs/libaik/__init__.py:34:25: UP045 Use `X | None` for type annotations help: Convert to `X | None`
image_type: Optional[str],

Check failure on line 35 in sebaubuntu_libs/libaik/__init__.py

View workflow job for this annotation

GitHub Actions / ruff-check

ruff (UP045)

sebaubuntu_libs/libaik/__init__.py:35:21: UP045 Use `X | None` for type annotations help: Convert to `X | None`
kernel: Optional[Path],
kernel_offset: Optional[str],
origsize: Optional[str],
Expand Down Expand Up @@ -114,7 +114,7 @@
image_prefix = image.name

try:
process = self._execute_script("unpackimg.sh", image)
process = self._execute_script("unpackimg.sh", image.resolve())
except CalledProcessError as e:
returncode = e.returncode
output = e.output
Expand Down
Loading