mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-03 06:56:44 +01:00
Remove unused
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
4bdc3e2505
commit
144721d385
4 changed files with 0 additions and 8 deletions
|
@ -75,7 +75,6 @@ class BlackList:
|
||||||
print(f"{self.green}{pkg}{self.endc}")
|
print(f"{self.green}{pkg}{self.endc}")
|
||||||
black_conf.write(pkg + "\n")
|
black_conf.write(pkg + "\n")
|
||||||
self.quit = True
|
self.quit = True
|
||||||
black_conf.close()
|
|
||||||
if self.quit:
|
if self.quit:
|
||||||
print() # new line at exit
|
print() # new line at exit
|
||||||
|
|
||||||
|
@ -90,7 +89,6 @@ class BlackList:
|
||||||
else:
|
else:
|
||||||
print(f"{self.red}{line}{self.endc}")
|
print(f"{self.red}{line}{self.endc}")
|
||||||
self.quit = True
|
self.quit = True
|
||||||
remove.close()
|
|
||||||
if self.quit:
|
if self.quit:
|
||||||
print() # new line at exit
|
print() # new line at exit
|
||||||
|
|
||||||
|
|
|
@ -171,7 +171,6 @@ def log_head(path, log_file, log_time):
|
||||||
log.write("Date : " + time.strftime("%d/%m/%Y") + "\n")
|
log.write("Date : " + time.strftime("%d/%m/%Y") + "\n")
|
||||||
log.write("Time : " + log_time + "\n\n")
|
log.write("Time : " + log_time + "\n\n")
|
||||||
log.write("#" * 79 + "\n\n")
|
log.write("#" * 79 + "\n\n")
|
||||||
log.close()
|
|
||||||
|
|
||||||
|
|
||||||
def log_end(path, log_file, sum_time):
|
def log_end(path, log_file, sum_time):
|
||||||
|
@ -185,7 +184,6 @@ def log_end(path, log_file, sum_time):
|
||||||
log.write(f"Total build time : {sum_time}\n")
|
log.write(f"Total build time : {sum_time}\n")
|
||||||
log.write(" " * 38 + "E N D\n\n")
|
log.write(" " * 38 + "E N D\n\n")
|
||||||
log.write("#" * 79 + "\n\n")
|
log.write("#" * 79 + "\n\n")
|
||||||
log.close()
|
|
||||||
|
|
||||||
|
|
||||||
def build_time(start_time):
|
def build_time(start_time):
|
||||||
|
|
|
@ -82,7 +82,6 @@ class Repo:
|
||||||
print("\nRepository '{0}' successfully "
|
print("\nRepository '{0}' successfully "
|
||||||
"removed\n".format(repo))
|
"removed\n".format(repo))
|
||||||
rem_repo = True
|
rem_repo = True
|
||||||
repos.close()
|
|
||||||
if not rem_repo:
|
if not rem_repo:
|
||||||
print("\nRepository '{0}' doesn't exist\n".format(repo))
|
print("\nRepository '{0}' doesn't exist\n".format(repo))
|
||||||
raise SystemExit()
|
raise SystemExit()
|
||||||
|
|
|
@ -65,7 +65,6 @@ class QueuePkgs:
|
||||||
with open(self.queue_list, "w") as queue:
|
with open(self.queue_list, "w") as queue:
|
||||||
for line in queue_file:
|
for line in queue_file:
|
||||||
queue.write(line)
|
queue.write(line)
|
||||||
queue.close()
|
|
||||||
self.queued = Utils().read_file(self.queue_list)
|
self.queued = Utils().read_file(self.queue_list)
|
||||||
|
|
||||||
def packages(self):
|
def packages(self):
|
||||||
|
@ -106,7 +105,6 @@ class QueuePkgs:
|
||||||
else:
|
else:
|
||||||
print(f"{self.red}{pkg}{self.endc}")
|
print(f"{self.red}{pkg}{self.endc}")
|
||||||
self.quit = True
|
self.quit = True
|
||||||
queue.close()
|
|
||||||
if self.quit:
|
if self.quit:
|
||||||
print() # new line at exit
|
print() # new line at exit
|
||||||
|
|
||||||
|
@ -121,7 +119,6 @@ class QueuePkgs:
|
||||||
else:
|
else:
|
||||||
print(f"{self.red}{line}{self.endc}")
|
print(f"{self.red}{line}{self.endc}")
|
||||||
self.quit = True
|
self.quit = True
|
||||||
queue.close()
|
|
||||||
if self.quit:
|
if self.quit:
|
||||||
print() # new line at exit
|
print() # new line at exit
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue