mirror of
https://github.com/Snigdha-OS/snigdhaos-blackbox.git
synced 2025-09-21 12:05:02 +02:00
⏳ @eshanized updated the repository!!!
This commit is contained in:
@@ -82,7 +82,7 @@ config_file = "%s/blackbox.yaml" % config_dir
|
||||
|
||||
event_log_file = "%s/event.log" % log_dir
|
||||
|
||||
export_dir = "%s/sofirem-exports" % home
|
||||
export_dir = "%s/blackbox-exports" % home
|
||||
|
||||
|
||||
# =====================================================
|
||||
@@ -131,7 +131,7 @@ except os.error as oe:
|
||||
print("[ERROR] Exception in setup log/export directory: %s" % oe)
|
||||
sys.exit(1)
|
||||
|
||||
# read in conf file from $HOME/.config/sofirem/sofirem.yaml
|
||||
# read in conf file from $HOME/.config/blackbox/blackbox.yaml
|
||||
# initialize logger
|
||||
try:
|
||||
settings = Settings(False, False)
|
||||
@@ -545,7 +545,7 @@ def refresh_ui(self, action, switch, pkg, progress_dialog, process_stdout_lst):
|
||||
|
||||
message_dialog = MessageDialog(
|
||||
"Warning",
|
||||
"Sofirem cannot proceed pacman lockfile found",
|
||||
"BlackBox cannot proceed pacman lockfile found",
|
||||
"Pacman cannot lock the db, a lockfile is found inside %s"
|
||||
% fn.pacman_lockfile,
|
||||
"Pacman is running: %s" % proc,
|
||||
@@ -566,7 +566,7 @@ def refresh_ui(self, action, switch, pkg, progress_dialog, process_stdout_lst):
|
||||
message_dialog = MessageDialog(
|
||||
"Error",
|
||||
"Pacman repository error: package '%s' was not found" % pkg.name,
|
||||
"Sofirem cannot process the request",
|
||||
"BlackBox cannot process the request",
|
||||
"Are the correct pacman mirrorlists configured ?",
|
||||
"error",
|
||||
False,
|
||||
@@ -1493,7 +1493,7 @@ def obtain_pkg_description(package):
|
||||
|
||||
|
||||
def restart_program():
|
||||
os.unlink("/tmp/sofirem.lock")
|
||||
os.unlink("/tmp/blackbox.lock")
|
||||
python = sys.executable
|
||||
os.execl(python, python, *sys.argv)
|
||||
|
||||
@@ -2753,7 +2753,7 @@ def log_package_status(self):
|
||||
self.pkg_err_queue.task_done()
|
||||
with open(self.logfile, "w") as f:
|
||||
f.write(
|
||||
"# This file was auto-generated by Sofirem on %s at %s\n"
|
||||
"# This file was auto-generated by BlackBox on %s at %s\n"
|
||||
% (
|
||||
datetime.today().date(),
|
||||
datetime.now().strftime("%H:%M:%S"),
|
||||
@@ -2773,7 +2773,7 @@ def log_package_status(self):
|
||||
break
|
||||
|
||||
|
||||
# open sofirem log directory
|
||||
# open blackbox log directory
|
||||
def open_log_dir():
|
||||
try:
|
||||
subprocess.Popen(
|
||||
|
Reference in New Issue
Block a user