From 222ae7d0c6125fca38e1180fddc2cdf7b195c6d6 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 6 Nov 2022 20:32:19 +0200 Subject: [PATCH 1/5] Check if the script exists Signed-off-by: Dimitris Zlatanidis --- slpkg/slackbuild.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/slpkg/slackbuild.py b/slpkg/slackbuild.py index c729bbe3..fe0dddda 100644 --- a/slpkg/slackbuild.py +++ b/slpkg/slackbuild.py @@ -126,14 +126,16 @@ class Slackbuilds: def patch_sbo_tag(self, sbo): ''' Patching SBo TAG from the configuration file. ''' sbo_script = f'{self.build_path}/{sbo}/{sbo}.SlackBuild' - with open(sbo_script, 'r', encoding='utf-8') as f: - lines = f.readlines() - with open(sbo_script, 'w') as script: - for line in lines: - if line.startswith('TAG=$'): - line = f'TAG=${{TAG:-{self.sbo_repo_tag}}}\n' - script.write(line) + if os.path.isfile(sbo_script): + with open(sbo_script, 'r', encoding='utf-8') as f: + lines = f.readlines() + + with open(sbo_script, 'w') as script: + for line in lines: + if line.startswith('TAG=$'): + line = f'TAG=${{TAG:-{self.sbo_repo_tag}}}\n' + script.write(line) def logging_installed_dependencies(self, name: str): ''' Logging installed dependencies and used for remove. ''' From 262544f8b7779a1d6273b6402b9ff8c23834a548 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 6 Nov 2022 20:33:30 +0200 Subject: [PATCH 2/5] Updated ChangeLog.txt Signed-off-by: Dimitris Zlatanidis --- ChangeLog.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index 63039f66..c0826c51 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +4.2.8 - 06/11/2022 +Updated: +- Check if the script exists before patching the SBo tag + 4.2.7 - 05/11/2022 Fixed: - Switch to check ChangeLogs.txt files by size From a0fd9f3d8a9a3e61ad90f7cfac23bffbb8e6e4a3 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 8 Nov 2022 21:09:16 +0200 Subject: [PATCH 3/5] Fixed typo Signed-off-by: Dimitris Zlatanidis --- ChangeLog.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index c0826c51..714f8fc0 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,6 +1,6 @@ 4.2.8 - 06/11/2022 Updated: -- Check if the script exists before patching the SBo tag +- Check the SBo script exists before patching the tag 4.2.7 - 05/11/2022 Fixed: From e3c5ccbdbb9e05a34e6c5063ab0d33e0a2084415 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 8 Nov 2022 21:11:25 +0200 Subject: [PATCH 4/5] Fixed comment Signed-off-by: Dimitris Zlatanidis --- configs/slpkg.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/slpkg.yml b/configs/slpkg.yml index 20bd4201..b08b28ef 100644 --- a/configs/slpkg.yml +++ b/configs/slpkg.yml @@ -29,7 +29,7 @@ configs: # The sbo tar suffix. sbo_tar_suffix: .tar.gz - # The sbo repo tag. + # The sbo repository tag. sbo_repo_tag: _SBo # Slackware install command. Alternative you can From acc8775d0c00af59f1375f9f389622d447af68bb Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 9 Nov 2022 18:03:10 +0200 Subject: [PATCH 5/5] Updated for version 4.2.8 Signed-off-by: Dimitris Zlatanidis --- README.rst | 4 ++-- setup.cfg | 2 +- slpkg/version.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 1477ca9b..e3fd5607 100644 --- a/README.rst +++ b/README.rst @@ -30,8 +30,8 @@ Install from the official third-party `SBo repository