mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Updated for str type
This commit is contained in:
parent
a5712bd6dc
commit
84590f4e3c
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue