Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2023-03-29 13:05:23 +03:00
parent 6674fcceac
commit 0915f1ab96
3 changed files with 4 additions and 6 deletions

View file

@ -4,13 +4,12 @@
from pathlib import Path
from slpkg.configs import Configs
from slpkg.sbos.queries import SBoQueries
from slpkg.blacklist import Blacklist
from slpkg.utilities import Utilities
from slpkg.sbos.queries import SBoQueries
from slpkg.repositories import Repositories
from slpkg.models.models import session as Session
from slpkg.binaries.queries import BinQueries
from slpkg.models.models import session as Session
from slpkg.models.models import SBoTable, PonceTable, BinariesTable
@ -38,7 +37,6 @@ class Check(Configs):
def exists_in_the_database(self, packages: list, repo='*') -> None:
""" Checking if the slackbuild exists in the database. """
not_packages: list = []
for pkg in packages:
if self.utils.is_option(self.flag_bin_repository, self.flags):

View file

@ -162,4 +162,3 @@ class Repositories:
conraid_repo_name: [conraid_repo, conraid_repo_path, conraid_repo_changelog],
slackonly_repo_name: [slackonly_repo, slackonly_repo_path, slackonly_repo_changelog]
}

View file

@ -92,7 +92,7 @@ class ViewMessage(Configs):
def install_packages(self, packages: list, mode: str, dependencies=None, repo='*') -> None:
""" View packages for install. """
if dependencies is None:
dependencies = []
dependencies: list = []
title: str = 'Slpkg Install Packages'
if mode == 'upgrade':
@ -115,6 +115,7 @@ class ViewMessage(Configs):
def download_packages(self, slackbuilds: list, directory: Path, repo='*') -> None:
""" View downloaded packages. """
mode = 'download'
self.ascii.draw_package_title_box('The following packages will be downloaded:', 'Slpkg Download Packages')
if directory: