mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Fix for processing
This commit is contained in:
parent
2827d3e5c5
commit
d3e9f2d9e2
2 changed files with 14 additions and 14 deletions
|
@ -156,11 +156,11 @@ class Packages(Configs):
|
||||||
if self.binary_packages:
|
if self.binary_packages:
|
||||||
print(f'Started the processing of ({self.cyan}{len(self.binary_packages)}{self.endc}) packages:\n')
|
print(f'Started the processing of ({self.cyan}{len(self.binary_packages)}{self.endc}) packages:\n')
|
||||||
|
|
||||||
for package in self.binary_packages:
|
for package in self.binary_packages:
|
||||||
command: str = f'{self.slackware_command} {self.tmp_slpkg}/{package}'
|
command: str = f'{self.slackware_command} {self.tmp_slpkg}/{package}'
|
||||||
self.multi_proc.run(command, package, self.progress_message)
|
self.multi_proc.run(command, package, self.progress_message)
|
||||||
name: str = self.utils.split_package(package)['name']
|
name: str = self.utils.split_package(package)['name']
|
||||||
self.write_deps_log(name)
|
self.write_deps_log(name)
|
||||||
|
|
||||||
def write_deps_log(self, name: str) -> None:
|
def write_deps_log(self, name: str) -> None:
|
||||||
deps: dict = {}
|
deps: dict = {}
|
||||||
|
|
|
@ -190,16 +190,16 @@ class Slackbuilds(Configs):
|
||||||
if self.install_order:
|
if self.install_order:
|
||||||
print(f'Started the processing of ({self.cyan}{len(self.install_order)}{self.endc}) packages:\n')
|
print(f'Started the processing of ({self.cyan}{len(self.install_order)}{self.endc}) packages:\n')
|
||||||
|
|
||||||
for sbo in self.install_order:
|
for sbo in self.install_order:
|
||||||
if self.continue_build_or_install(sbo):
|
if self.continue_build_or_install(sbo):
|
||||||
self.patch_slackbuild_tag(sbo)
|
self.patch_slackbuild_tag(sbo)
|
||||||
self.build_the_script(self.build_path, sbo)
|
self.build_the_script(self.build_path, sbo)
|
||||||
|
|
||||||
if self.mode in ('install', 'upgrade'):
|
if self.mode in ('install', 'upgrade'):
|
||||||
self.install_package(sbo)
|
self.install_package(sbo)
|
||||||
else:
|
else:
|
||||||
installed_package: str = self.utils.is_package_installed(sbo)
|
installed_package: str = self.utils.is_package_installed(sbo)
|
||||||
self.view.skipping_packages(installed_package)
|
self.view.skipping_packages(installed_package)
|
||||||
|
|
||||||
def patch_slackbuild_tag(self, sbo: str) -> None:
|
def patch_slackbuild_tag(self, sbo: str) -> None:
|
||||||
sbo_script: Path = Path(self.build_path, sbo, f'{sbo}.SlackBuild')
|
sbo_script: Path = Path(self.build_path, sbo, f'{sbo}.SlackBuild')
|
||||||
|
|
Loading…
Add table
Reference in a new issue