From 354d6f9f3546211777a5fb3a1f67147d552267d6 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 29 May 2022 21:54:29 +0300 Subject: [PATCH] Fixed typos --- slpkg/slack/mirrors.py | 2 +- slpkg/slack/patches.py | 18 +++++++++--------- slpkg/slack/slack_version.py | 3 +-- slpkg/slack/slackware_repo.py | 2 +- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/slpkg/slack/mirrors.py b/slpkg/slack/mirrors.py index f9e3d475..0498d23c 100644 --- a/slpkg/slack/mirrors.py +++ b/slpkg/slack/mirrors.py @@ -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 diff --git a/slpkg/slack/patches.py b/slpkg/slack/patches.py index f92e5ac0..94890f03 100644 --- a/slpkg/slack/patches.py +++ b/slpkg/slack/patches.py @@ -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}") diff --git a/slpkg/slack/slack_version.py b/slpkg/slack/slack_version.py index 23940232..aafe1e47 100644 --- a/slpkg/slack/slack_version.py +++ b/slpkg/slack/slack_version.py @@ -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"]: diff --git a/slpkg/slack/slackware_repo.py b/slpkg/slack/slackware_repo.py index 639e3c94..48b24551 100644 --- a/slpkg/slack/slackware_repo.py +++ b/slpkg/slack/slackware_repo.py @@ -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 = [], [], []