From 8c3f1615c25376c77e0d10617065ac18b6f462cf Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 9 Aug 2023 17:37:25 +0300 Subject: [PATCH] Removed unneeded code --- slpkg/update_repository.py | 48 -------------------------------------- 1 file changed, 48 deletions(-) diff --git a/slpkg/update_repository.py b/slpkg/update_repository.py index ce608353..0226e696 100644 --- a/slpkg/update_repository.py +++ b/slpkg/update_repository.py @@ -692,51 +692,3 @@ class UpdateRepository(Configs): """ Deletes the last updated date. """ self.session.query(LastRepoUpdated).where(LastRepoUpdated.repo == repo).delete() self.session.commit() - -# def generate_the_slackbuilds_txt(self, path: Path, slackbuilds_txt: str) -> None: -# """ Generates the SLACKBUILDS.TXT file. """ -# -# sbo_txt: Path = Path(path, slackbuilds_txt) -# gen_script: Path = Path(path, 'gen_sbo_txt.sh') -# -# if not sbo_txt.is_file(): -# -# if not gen_script.is_file(): -# with open(gen_script, 'w') as file: -# file.write(self.__class__.gen_sbo_script.__doc__) -# os.chmod(gen_script, 0o775) -# -# # Generating the SLACKBUILDS.TXT file. -# print(f'Generating the {slackbuilds_txt} file... ', end='', flush=True) -# os.chdir(path) -# self.utils.process(f'./gen_sbo_txt.sh > {slackbuilds_txt}') -# -# print(f'{self.byellow}Done{self.endc}\n') -# -# def gen_sbo_script(self) -> None: -# """#!/bin/bash -# -# # gen_sbo_txt.sh is a script to build a SLACKBUILDS.TXT file. -# # Thanks to bassmadrigal from LQ forum. -# # https://www.linuxquestions.org/questions/slackware-14/script-for-building-a-slackbuilds-txt-4175598436/ -# -# for i in */*; do -# -# NAME=$(echo $i | cut -d "/" -f2) -# FILES=$(ls $i) -# source $i/${NAME}.info -# DESCRIPTION=$(grep -m 1 $NAME $i/slack-desc | cut -d " " -f2-) -# -# echo SLACKBUILD NAME: $NAME -# echo SLACKBUILD LOCATION: ./$i -# echo SLACKBUILD FILES: $FILES -# echo SLACKBUILD VERSION: $VERSION -# echo SLACKBUILD DOWNLOAD: $DOWNLOAD -# echo SLACKBUILD DOWNLOAD_x86_64: $DOWNLOAD_x86_64 -# echo SLACKBUILD MD5SUM: $MD5SUM -# echo SLACKBUILD MD5SUM_x86_64: $MD5SUM_x86_64 -# echo SLACKBUILD REQUIRES: $REQUIRES -# echo SLACKBUILD SHORT DESCRIPTION: $DESCRIPTION -# echo -# -# done"""