mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-01 07:57:26 +01:00
Fixed typos
This commit is contained in:
parent
354d6f9f35
commit
e8dbcd5a6d
4 changed files with 8 additions and 8 deletions
|
@ -65,6 +65,6 @@ def pkg_upgrade(repo, skip, flag):
|
||||||
|
|
||||||
|
|
||||||
def installed():
|
def installed():
|
||||||
"""Return all installed packages
|
"""Returns all installed packages
|
||||||
"""
|
"""
|
||||||
return find_package("", _meta_.pkg_path)
|
return find_package("", _meta_.pkg_path)
|
||||||
|
|
|
@ -30,7 +30,7 @@ from slpkg.sbo.greps import SBoGrep
|
||||||
|
|
||||||
|
|
||||||
class PkgDesc(Utils):
|
class PkgDesc(Utils):
|
||||||
"""Print package description from the repository
|
"""Prints package description from the repository
|
||||||
"""
|
"""
|
||||||
def __init__(self, name, repo, paint):
|
def __init__(self, name, repo, paint):
|
||||||
self.name = name
|
self.name = name
|
||||||
|
@ -51,7 +51,7 @@ class PkgDesc(Utils):
|
||||||
self.lib = f"{self.meta.lib_path}{self.repo}_repo/PACKAGES.TXT"
|
self.lib = f"{self.meta.lib_path}{self.repo}_repo/PACKAGES.TXT"
|
||||||
|
|
||||||
def view(self):
|
def view(self):
|
||||||
"""Print package description by repository
|
"""Prints package description by repository
|
||||||
"""
|
"""
|
||||||
description, count = "", 0
|
description, count = "", 0
|
||||||
if self.repo == "sbo":
|
if self.repo == "sbo":
|
||||||
|
|
|
@ -48,7 +48,7 @@ class DialogUtil:
|
||||||
self.d = Dialog(dialog="dialog", autowidgetsize=True)
|
self.d = Dialog(dialog="dialog", autowidgetsize=True)
|
||||||
|
|
||||||
def checklist(self):
|
def checklist(self):
|
||||||
"""Run dialog checklist
|
"""Runs dialog checklist
|
||||||
"""
|
"""
|
||||||
choice = []
|
choice = []
|
||||||
for item in self.data:
|
for item in self.data:
|
||||||
|
@ -63,7 +63,7 @@ class DialogUtil:
|
||||||
self.exit()
|
self.exit()
|
||||||
|
|
||||||
def buildlist(self, enabled):
|
def buildlist(self, enabled):
|
||||||
"""Run dialog buildlist
|
"""Runs dialog buildlist
|
||||||
"""
|
"""
|
||||||
choice = []
|
choice = []
|
||||||
for item in self.data:
|
for item in self.data:
|
||||||
|
@ -81,7 +81,7 @@ class DialogUtil:
|
||||||
self.exit()
|
self.exit()
|
||||||
|
|
||||||
def exit(self):
|
def exit(self):
|
||||||
"""Exit from dialog
|
"""Exits from dialog
|
||||||
"""
|
"""
|
||||||
self.clear_screen()
|
self.clear_screen()
|
||||||
raise SystemExit()
|
raise SystemExit()
|
||||||
|
@ -92,7 +92,7 @@ class DialogUtil:
|
||||||
os.system("clear")
|
os.system("clear")
|
||||||
|
|
||||||
def unicode_to_string(self):
|
def unicode_to_string(self):
|
||||||
"""Convert unicode in string
|
"""Converts unicode in string
|
||||||
"""
|
"""
|
||||||
for tag in self.tags:
|
for tag in self.tags:
|
||||||
self.ununicode.append(str(tag))
|
self.ununicode.append(str(tag))
|
||||||
|
|
|
@ -101,7 +101,7 @@ Keys: SPACE select or deselect the highlighted repositories,
|
||||||
self.tag_line = False
|
self.tag_line = False
|
||||||
|
|
||||||
def update_repos(self):
|
def update_repos(self):
|
||||||
"""Update repositories.conf file with enabled or disabled
|
"""Updates repositories.conf file with enabled or disabled
|
||||||
repositories
|
repositories
|
||||||
"""
|
"""
|
||||||
with open(f"{self.meta.conf_path}"
|
with open(f"{self.meta.conf_path}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue