Updated for str type

This commit is contained in:
Dimitris Zlatanidis 2023-05-13 17:54:28 +03:00
parent a5712bd6dc
commit 84590f4e3c

View file

@ -26,7 +26,7 @@ class ViewPackage(Configs):
""" View slackbuild packages information. """
repo: dict = {
self.repos.sbo_repo_name: self.repos.sbo_repo_tar_suffix,
self.repos.ponce_repo_name: ''
self.repos.ponce_repo_name: str()
}
repo_tar_suffix: str = repo[self.repository]
repository_packages: tuple = tuple(data.keys())
@ -48,7 +48,7 @@ class ViewPackage(Configs):
mirror: str = self.repos.repositories[self.repository]['mirror'][0]
maintainer, email, homepage = '', '', ''
maintainer = email = homepage = str()
for line in info_file:
if line.startswith('HOMEPAGE'):
homepage: str = line[10:-2].strip()