Removed unneeded code

This commit is contained in:
Dimitris Zlatanidis 2023-08-09 17:37:25 +03:00
parent 8523a2dde2
commit 8c3f1615c2

View file

@ -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"""