mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-07 08:46:21 +01:00
Fixed for version
This commit is contained in:
parent
60a1f7cdb9
commit
1fcf8d21fe
1 changed files with 6 additions and 6 deletions
|
@ -202,10 +202,10 @@ class Slackbuilds(Configs):
|
|||
|
||||
if self.os_arch == 'x86_64' and self.sbo_repo_dict[sbo][6]:
|
||||
checksums: list = self.sbo_repo_dict[sbo][6].split()
|
||||
sources: list = self.sbo_repo_dict[sbo][6].split()
|
||||
sources: list = self.sbo_repo_dict[sbo][4].split()
|
||||
else:
|
||||
checksums: list = self.sbo_repo_dict[sbo][5].split()
|
||||
sources: list = self.sbo_repo_dict[sbo][5].split()
|
||||
sources: list = self.sbo_repo_dict[sbo][3].split()
|
||||
|
||||
for source, checksum in zip(sources, checksums):
|
||||
md5sum = Md5sum(self.flags)
|
||||
|
@ -289,19 +289,19 @@ class Slackbuilds(Configs):
|
|||
|
||||
def package_for_install(self, name: str) -> str:
|
||||
""" Returns the package for install. """
|
||||
package_to_install: str = ''
|
||||
version: str = self.sbo_repo_dict[name][0]
|
||||
package: str = ''
|
||||
version: str = self.sbo_repo_dict[name][2]
|
||||
pattern: str = f'{name}-{version}*{self.repos.repo_tag}*'
|
||||
|
||||
tmp = Path(self.tmp_path)
|
||||
packages: list = [file.name for file in tmp.glob(pattern)]
|
||||
|
||||
try:
|
||||
package_to_install: str = max(packages)
|
||||
package: str = max(packages)
|
||||
except ValueError:
|
||||
self.utils.raise_error_message(f"Package '{name}' not found for install")
|
||||
|
||||
return package_to_install
|
||||
return package
|
||||
|
||||
def build_the_script(self, path: Path, name: str) -> None:
|
||||
""" Run the .SlackBuild script. """
|
||||
|
|
Loading…
Add table
Reference in a new issue