Merge branch 'develop'

This commit is contained in:
Dimitris Zlatanidis 2022-12-09 17:13:32 +02:00
commit a312bff1a2
7 changed files with 14 additions and 13 deletions

View file

@ -1,3 +1,7 @@
4.3.6 - 08/12/2022
Fixed:
- Remove packages
4.3.5 - 07/12/2022
Updated:
- Code style
@ -9,7 +13,7 @@ Updated:
- Remove dataclasses and switch to __init__
- Version print command
Added:
- Version to the requires in the view packages command
- Version to the requirements in the view packages command
- Short cli menu
4.3.3 - 01/12/2022

View file

@ -30,8 +30,8 @@ Install from the official third-party `SBo repository <https://slackbuilds.org/r
.. code-block:: bash
$ tar xvf slpkg-4.3.5.tar.gz
$ cd slpkg-4.3.5
$ tar xvf slpkg-4.3.6.tar.gz
$ cd slpkg-4.3.6
$ ./install.sh

View file

@ -1,6 +1,6 @@
[metadata]
name = slpkg
version = 4.3.5
version = 4.3.6
license_file = LICENSE
author = Dimitris Zlatanidis
author_email = d.zlatanidis@gmail.com

View file

@ -42,8 +42,8 @@ class Check:
for sbo in slackbuilds:
for package in os.listdir(self.configs.log_packages):
if (package.startswith(f'{sbo}-') and
package.endswith(self.configs.sbo_repo_tag)):
pkg = '-'.join(package.split('-')[:-3])
if sbo == pkg and package.endswith(self.configs.sbo_repo_tag):
found.append(sbo)
for sbo in slackbuilds:

View file

@ -24,7 +24,7 @@ from slpkg.update_repository import UpdateRepository
class Argparse:
def __init__(self, args):
self.args: list = args
self.args = args
self.usage = Usage()
if len(self.args) == 0:

View file

@ -6,7 +6,7 @@ class Version:
""" Print the version. """
def __init__(self):
self.version_info: tuple = (4, 3, 5)
self.version_info: tuple = (4, 3, 6)
self.version: str = '{0}.{1}.{2}'.format(*self.version_info)
self.license: str = 'MIT License'
self.author: str = 'Dimitris Zlatanidis (dslackw)'

View file

@ -67,7 +67,6 @@ class ViewMessage:
""" View remove packages. """
print('The following packages will be removed:\n')
slackbuilds, dependencies, deps = [], [], []
for pkg in packages:
self._view_installed_packages(pkg)
slackbuilds.append(pkg)
@ -145,10 +144,8 @@ class ViewMessage:
color = self.colors()
for package in installed:
black = package.split('-')[0]
if (package.startswith(f'{name}-') and
self.configs.sbo_repo_tag in package and
black not in self.black.get()):
pkg = '-'.join(package.split('-')[:-3])
if pkg == name and self.configs.sbo_repo_tag in package and pkg not in self.black.get():
self.installed_packages.append(package)
print(f'[{color["red"]} delete {color["endc"]}] -> {package}')