Fixed typos

This commit is contained in:
Dimitris Zlatanidis 2022-05-29 21:54:29 +03:00
parent c59dbc0b81
commit 354d6f9f35
4 changed files with 12 additions and 13 deletions

View file

@ -29,7 +29,7 @@ from slpkg.slack.slack_version import slack_ver
def mirrors(name, location):
"""Select Slackware official mirror packages
"""Selects Slackware official mirror packages
based architecture and version.
"""
rel = _meta_.slack_rel

View file

@ -53,7 +53,7 @@ from slpkg.slack.slack_version import slack_ver
class Patches(BlackList, Utils):
"""Upgrade distribution from official Slackware mirrors
"""Upgrades distribution from the official Slackware mirrors
"""
def __init__(self, skip, flag):
super().__init__()
@ -85,7 +85,7 @@ class Patches(BlackList, Utils):
self.PACKAGES_TXT = URL(mirrors("PACKAGES.TXT", "")).get_request()
def start(self):
"""Install new patches from official Slackware mirrors
"""Installs new patches from official Slackware mirrors
"""
self.store()
self.msg.done()
@ -132,7 +132,7 @@ class Patches(BlackList, Utils):
f" distribution is up to date!\n")
def store(self):
"""Store and return packages for upgrading
"""Stores and returns packages for upgrading
"""
data = repo_data(self.PACKAGES_TXT, "slack", self.flag)
black = list(self.get_black())
@ -169,7 +169,7 @@ class Patches(BlackList, Utils):
return self.count_upg
def dialog_checklist(self):
"""Create checklist to choose packages for upgrade
"""Creates checklist to choose packages for upgrade
"""
data = []
for upg in self.upgrade_all:
@ -214,7 +214,7 @@ class Patches(BlackList, Utils):
f"{' ' * (7-len(pkg_repo[3]))}Slack{size:>12} K")
def upgrade(self):
"""Upgrade packages
"""Upgrades packages
"""
for pkg in self.upgrade_all:
check_md5(pkg_checksum(pkg, "slack_patches"),
@ -233,8 +233,8 @@ class Patches(BlackList, Utils):
self.installed.append(pkg_ver)
def kernel(self):
"""Check if kernel upgraded if true
then reinstall "lilo"
"""Checks if kernel upgraded if true
then reinstall boot loader
"""
for core in self.upgrade_all:
if "kernel" in core:
@ -264,7 +264,7 @@ class Patches(BlackList, Utils):
break
def slackpkg_update(self):
"""This replace slackpkg ChangeLog.txt file with new
"""This replace slackpkg ChangeLog.txt file with new one
from Slackware official mirrors after update distribution.
"""
NEW_ChangeLog_txt = URL(mirrors("ChangeLog.txt", "")).get_request()
@ -278,7 +278,7 @@ class Patches(BlackList, Utils):
log.write(NEW_ChangeLog_txt)
def update_lists(self):
"""Update packages list and ChangeLog.txt file after
"""Updates packages list and ChangeLog.txt file after
upgrade distribution
"""
print(f"{self.green}Update the package lists ?{self.endc}")

View file

@ -29,8 +29,7 @@ from slpkg.__metadata__ import MetaData as _meta_
def slack_ver():
"""
Open file and read Slackware version
"""Opens the file and read Slackware version
"""
utils = Utils()
if _meta_.slackware_version in ["off", "OFF"]:

View file

@ -29,7 +29,7 @@ from slpkg.__metadata__ import MetaData as _meta_
def slackware_repository():
"""Return all official Slackware packages
"""Returns all official Slackware packages
"""
utils = Utils()
slack_repo, packages, names = [], [], []