Updated for way to install

This commit is contained in:
Dimitris Zlatanidis 2023-01-14 22:46:35 +02:00
parent 1a4cb17f2a
commit ad35eaf128
2 changed files with 17 additions and 3 deletions

View file

@ -1,3 +1,7 @@
4.5.0 - 14/01/2023
Updated:
- Download first all the slackbuilds
4.4.9 - 13/01/2023
Updated:
- Color highlight for installed packages

View file

@ -68,7 +68,8 @@ class Slackbuilds:
self.view_before_build()
start = time.time()
self.download_slackbuilds_and_build()
self.download_slackbuilds()
self.build_and_install()
elapsed_time = time.time() - start
self.utils.finished_time(elapsed_time)
@ -118,8 +119,8 @@ class Slackbuilds:
self.view_message.question()
def download_slackbuilds_and_build(self):
""" Downloads files and sources and starting the build. """
def download_slackbuilds(self):
""" Downloads files and sources. """
for sbo in self.install_order:
package = self.utils.is_installed(sbo)
@ -145,6 +146,15 @@ class Slackbuilds:
sources = SBoQueries(sbo).sources()
self.download_sources(sbo, sources)
def build_and_install(self):
""" Build the slackbuilds and install. """
for sbo in self.install_order:
package = self.utils.is_installed(sbo)
if (not package or self.utils.is_repo_version_bigger(sbo) or
self.mode == 'build' or self.flag_reinstall in self.flags):
self.build_the_script(self.configs.build_path, sbo)
if not self.mode == 'build':