Commit 9de050d7 authored by Adrian DC's avatar Adrian DC
Browse files

fix(updates): remove unused 'recommended' feature

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent 80b42e91
Loading
Loading
Loading
Loading
Loading
+1 −8
Changes for src/package/updates.py: 1 added line, 8 removed lines.
Original line number Diff line number Diff line
@@ -130,7 +130,6 @@ class Updates:
        older: bool = False,
        available: Optional[str] = None,
        date: Optional[datetime] = None,
        recommended: Optional[str] = None,
    ) -> None:

        # Modules libraries, pylint: disable=import-outside-toplevel
@@ -169,14 +168,8 @@ class Updates:
        version_prefix = f'{Colors.YELLOW_LIGHT}Version: {Colors.BOLD}{name}' \
            f' {Colors.RED if version_outdated else Colors.GREEN}{version}'

        # Recommended version message
        if recommended:
            available = recommended
            box.add(f'{version_prefix} {Colors.BOLD}older than recommended version '
                    f'{Colors.RED}{recommended}{Colors.BOLD}')

        # Offline version message
        elif offline:
        if offline:
            box.add(f'{version_prefix} {Colors.BOLD}not found, network might be down')

        # Updated version message