Updated for version 4.1.8

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-10-08 20:40:01 +03:00
parent 4063481624
commit 0590802695
7 changed files with 23 additions and 6 deletions

View file

@ -1,6 +1,8 @@
4.1.8 - 06/10/2022
Updated:
- Manpage for .yaml files
Added:
- New flag --skip-installed
4.1.7 - 28/9/2022
Bugfixed:

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.1.7.tar.gz
$ cd slpkg-4.1.7
$ tar xvf slpkg-4.1.8.tar.gz
$ cd slpkg-4.1.8
$ ./install.sh
@ -63,6 +63,7 @@ Usage
--jobs Set it for multicore systems.
--resolve-off Turns off dependency resolving.
--reinstall Use this option if you want to upgrade.
--skip-installed Skip installed packages.
-h, --help Show this message and exit.
-v, --version Print version and exit.

View file

@ -4,7 +4,7 @@
slpkg - [OPTIONS] [COMMAND] <packages>
.SH SYNAPSES
.P
slpkg [-h|-v] [update] [upgrade] [build] [install] [remove] [find] [search] [clean-logs] [clean-tmp] --yes --resolve-off --reinstall
slpkg [-h|-v] [update] [upgrade] [build] [install] [remove] [find] [search] [clean-logs] [clean-tmp] --yes --resolve-off --reinstall --skip-installed
.SH DESCRIPTION
.P
Slpkg is a software package manager that installs, updates, and removes packages on Slackware based systems. It automatically computes dependencies and figures out what things should occur to install packages. Slpkg makes it easier to maintain groups of machines without having to manually update.
@ -79,6 +79,11 @@ Turns off dependency resolving.
Use this option if you want to upgrade all packages even if the same version is already installed. Do not skip installed packages.
.RE
.P
--skip-installed
.RS
This a helpful option if you want to avoid building and reinstalling packages.
.RE
.P
-h | --help
.RS
Show help informatio and exit.

View file

@ -36,7 +36,8 @@ class Argparse:
self.options = ['--yes',
'--jobs',
'--resolve-off',
'--reinstall'
'--reinstall',
'--skip-installed'
]
for option in self.options:

View file

@ -90,6 +90,13 @@ class Slackbuilds:
wget = Wget()
for sbo in self.install_order:
pkg = f'{sbo}-{SBoQueries(sbo).version()}'
if ('--skip-installed' in self.flags and
self.utils.is_installed(f'{pkg}-')):
print(f'Package {pkg} skipped.')
continue
file = f'{sbo}{self.tar_suffix}'
self.utils.remove_file_if_exists(self.tmp_slpkg, file)

View file

@ -10,7 +10,7 @@ from slpkg.configs import Configs
@dataclass
class Version:
prog_name: str = Configs.prog_name
version_info: tuple = (4, 1, 7)
version_info: tuple = (4, 1, 8)
version: str = '{0}.{1}.{2}'.format(*version_info)
license: str = 'MIT License'
author: str = 'dslackw'

View file

@ -32,7 +32,8 @@ def usage(status: int):
f' {YELLOW}--yes{ENDC} Answer Yes to all questions.',
f' {YELLOW}--jobs{ENDC} Set it for multicore systems.',
f' {YELLOW}--resolve-off{ENDC} Turns off dependency resolving.',
f' {YELLOW}--reinstall{ENDC} Use this option if you want to upgrade.\n',
f' {YELLOW}--reinstall{ENDC} Use this option if you want to upgrade.',
f' {YELLOW}--skip-installed{ENDC} Skip installed packages.\n',
' -h, --help Show this message and exit.',
' -v, --version Print version and exit.\n',
'If you need more information try to use slpkg manpage.']