From e3fa4634750ccceb23998fadefc249b35f86ca5b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 8 Feb 2024 17:12:13 +0000 Subject: getcolor -> getclr --- src/backend/uninstall.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/backend/uninstall.py') diff --git a/src/backend/uninstall.py b/src/backend/uninstall.py index 3900f4b..e3e6135 100644 --- a/src/backend/uninstall.py +++ b/src/backend/uninstall.py @@ -8,7 +8,7 @@ import signal import subprocess import sys import sisyphus.checkenv -import sisyphus.getcolor +import sisyphus.getclr import sisyphus.getfs import sisyphus.killemerge import sisyphus.solverdeps @@ -26,8 +26,8 @@ def start(pkgname, depclean=False, gfx_ui=False, unmerge=False): args = ['--quiet', '--depclean'] if not sisyphus.checkenv.root() and (unmerge or depclean): - print(sisyphus.getcolor.bright_red + - "\nYou need root permissions to do this!\n" + sisyphus.getcolor.reset) + print(sisyphus.getclr.bright_red + + "\nYou need root permissions to do this!\n" + sisyphus.getclr.reset) sys.exit() else: if gfx_ui: @@ -62,10 +62,10 @@ def start(pkgname, depclean=False, gfx_ui=False, unmerge=False): except subprocess.TimeoutExpired: p_exe.kill() sys.exit() - print(sisyphus.getcolor.bright_red + - "\nWon't uninstall! Other packages depend on " + sisyphus.getcolor.reset + str(pkgname)) - print(sisyphus.getcolor.bright_red + "Use the " + sisyphus.getcolor.reset + sisyphus.getcolor.green + "'--force'" + - sisyphus.getcolor.reset + sisyphus.getcolor.bright_red + " option to override at your own risk!\n" + sisyphus.getcolor.reset) + print(sisyphus.getclr.bright_red + + "\nWon't uninstall! Other packages depend on " + sisyphus.getclr.reset + str(pkgname)) + print(sisyphus.getclr.bright_red + "Use the " + sisyphus.getclr.reset + sisyphus.getclr.green + "'--force'" + + sisyphus.getclr.reset + sisyphus.getclr.bright_red + " option to override at your own risk!\n" + sisyphus.getclr.reset) else: if unmerge: p_exe = subprocess.Popen( -- cgit v1.2.3