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
c59dbc0b81
commit
354d6f9f35
4 changed files with 12 additions and 13 deletions
|
@ -29,7 +29,7 @@ from slpkg.slack.slack_version import slack_ver
|
||||||
|
|
||||||
|
|
||||||
def mirrors(name, location):
|
def mirrors(name, location):
|
||||||
"""Select Slackware official mirror packages
|
"""Selects Slackware official mirror packages
|
||||||
based architecture and version.
|
based architecture and version.
|
||||||
"""
|
"""
|
||||||
rel = _meta_.slack_rel
|
rel = _meta_.slack_rel
|
||||||
|
|
|
@ -53,7 +53,7 @@ from slpkg.slack.slack_version import slack_ver
|
||||||
|
|
||||||
|
|
||||||
class Patches(BlackList, Utils):
|
class Patches(BlackList, Utils):
|
||||||
"""Upgrade distribution from official Slackware mirrors
|
"""Upgrades distribution from the official Slackware mirrors
|
||||||
"""
|
"""
|
||||||
def __init__(self, skip, flag):
|
def __init__(self, skip, flag):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
@ -85,7 +85,7 @@ class Patches(BlackList, Utils):
|
||||||
self.PACKAGES_TXT = URL(mirrors("PACKAGES.TXT", "")).get_request()
|
self.PACKAGES_TXT = URL(mirrors("PACKAGES.TXT", "")).get_request()
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
"""Install new patches from official Slackware mirrors
|
"""Installs new patches from official Slackware mirrors
|
||||||
"""
|
"""
|
||||||
self.store()
|
self.store()
|
||||||
self.msg.done()
|
self.msg.done()
|
||||||
|
@ -132,7 +132,7 @@ class Patches(BlackList, Utils):
|
||||||
f" distribution is up to date!\n")
|
f" distribution is up to date!\n")
|
||||||
|
|
||||||
def store(self):
|
def store(self):
|
||||||
"""Store and return packages for upgrading
|
"""Stores and returns packages for upgrading
|
||||||
"""
|
"""
|
||||||
data = repo_data(self.PACKAGES_TXT, "slack", self.flag)
|
data = repo_data(self.PACKAGES_TXT, "slack", self.flag)
|
||||||
black = list(self.get_black())
|
black = list(self.get_black())
|
||||||
|
@ -169,7 +169,7 @@ class Patches(BlackList, Utils):
|
||||||
return self.count_upg
|
return self.count_upg
|
||||||
|
|
||||||
def dialog_checklist(self):
|
def dialog_checklist(self):
|
||||||
"""Create checklist to choose packages for upgrade
|
"""Creates checklist to choose packages for upgrade
|
||||||
"""
|
"""
|
||||||
data = []
|
data = []
|
||||||
for upg in self.upgrade_all:
|
for upg in self.upgrade_all:
|
||||||
|
@ -214,7 +214,7 @@ class Patches(BlackList, Utils):
|
||||||
f"{' ' * (7-len(pkg_repo[3]))}Slack{size:>12} K")
|
f"{' ' * (7-len(pkg_repo[3]))}Slack{size:>12} K")
|
||||||
|
|
||||||
def upgrade(self):
|
def upgrade(self):
|
||||||
"""Upgrade packages
|
"""Upgrades packages
|
||||||
"""
|
"""
|
||||||
for pkg in self.upgrade_all:
|
for pkg in self.upgrade_all:
|
||||||
check_md5(pkg_checksum(pkg, "slack_patches"),
|
check_md5(pkg_checksum(pkg, "slack_patches"),
|
||||||
|
@ -233,8 +233,8 @@ class Patches(BlackList, Utils):
|
||||||
self.installed.append(pkg_ver)
|
self.installed.append(pkg_ver)
|
||||||
|
|
||||||
def kernel(self):
|
def kernel(self):
|
||||||
"""Check if kernel upgraded if true
|
"""Checks if kernel upgraded if true
|
||||||
then reinstall "lilo"
|
then reinstall boot loader
|
||||||
"""
|
"""
|
||||||
for core in self.upgrade_all:
|
for core in self.upgrade_all:
|
||||||
if "kernel" in core:
|
if "kernel" in core:
|
||||||
|
@ -264,7 +264,7 @@ class Patches(BlackList, Utils):
|
||||||
break
|
break
|
||||||
|
|
||||||
def slackpkg_update(self):
|
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.
|
from Slackware official mirrors after update distribution.
|
||||||
"""
|
"""
|
||||||
NEW_ChangeLog_txt = URL(mirrors("ChangeLog.txt", "")).get_request()
|
NEW_ChangeLog_txt = URL(mirrors("ChangeLog.txt", "")).get_request()
|
||||||
|
@ -278,7 +278,7 @@ class Patches(BlackList, Utils):
|
||||||
log.write(NEW_ChangeLog_txt)
|
log.write(NEW_ChangeLog_txt)
|
||||||
|
|
||||||
def update_lists(self):
|
def update_lists(self):
|
||||||
"""Update packages list and ChangeLog.txt file after
|
"""Updates packages list and ChangeLog.txt file after
|
||||||
upgrade distribution
|
upgrade distribution
|
||||||
"""
|
"""
|
||||||
print(f"{self.green}Update the package lists ?{self.endc}")
|
print(f"{self.green}Update the package lists ?{self.endc}")
|
||||||
|
|
|
@ -29,8 +29,7 @@ from slpkg.__metadata__ import MetaData as _meta_
|
||||||
|
|
||||||
|
|
||||||
def slack_ver():
|
def slack_ver():
|
||||||
"""
|
"""Opens the file and read Slackware version
|
||||||
Open file and read Slackware version
|
|
||||||
"""
|
"""
|
||||||
utils = Utils()
|
utils = Utils()
|
||||||
if _meta_.slackware_version in ["off", "OFF"]:
|
if _meta_.slackware_version in ["off", "OFF"]:
|
||||||
|
|
|
@ -29,7 +29,7 @@ from slpkg.__metadata__ import MetaData as _meta_
|
||||||
|
|
||||||
|
|
||||||
def slackware_repository():
|
def slackware_repository():
|
||||||
"""Return all official Slackware packages
|
"""Returns all official Slackware packages
|
||||||
"""
|
"""
|
||||||
utils = Utils()
|
utils = Utils()
|
||||||
slack_repo, packages, names = [], [], []
|
slack_repo, packages, names = [], [], []
|
||||||
|
|
Loading…
Add table
Reference in a new issue