From 1d8068d79dd0c09dc5c05ce6909a49e8e7249657 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 17 Dec 2022 10:26:14 +0000 Subject: upgrade : fix undefined variable in print output --- src/backend/install.py | 8 ++++---- src/backend/upgrade.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/backend') diff --git a/src/backend/install.py b/src/backend/install.py index a3bd6ec..83e2c68 100644 --- a/src/backend/install.py +++ b/src/backend/install.py @@ -55,15 +55,15 @@ def start(pkgname): else: print(sisyphus.getcolor.bright_red + "\nSource package(s) found in the mix!\n" + sisyphus.getcolor.reset) - print(sisyphus.getcolor.bright_yellow + "Use" + sisyphus.getcolor.reset + " " + "'" + - "sisyphus install" + " " + " ".join(pkgname) + " " + "--ebuild" + "'" + sisyphus.getcolor.reset) + print(sisyphus.getcolor.bright_yellow + "Use" + sisyphus.getcolor.reset + " " + + "'" + "sisyphus install" + " " + " ".join(pkgname) + " " + "--ebuild" + "'") sys.exit() else: # don't silently fail if a source package requested without the --ebuild option needs a keyword, mask, REQUIRED_USE or USE change print(sisyphus.getcolor.bright_red + "\nInvalid request!\n" + sisyphus.getcolor.reset) - print(sisyphus.getcolor.bright_yellow + "Use" + sisyphus.getcolor.reset + " " + "'" + - "sisyphus install" + " " + " ".join(pkgname) + " " + "--ebuild" + "'" + sisyphus.getcolor.reset) + print(sisyphus.getcolor.bright_yellow + "Use" + sisyphus.getcolor.reset + " " + + "'" + "sisyphus install" + " " + " ".join(pkgname) + " " + "--ebuild" + "'") sys.exit() else: print(sisyphus.getcolor.bright_red + diff --git a/src/backend/upgrade.py b/src/backend/upgrade.py index e722066..3c48955 100644 --- a/src/backend/upgrade.py +++ b/src/backend/upgrade.py @@ -55,15 +55,15 @@ def start(): else: print(sisyphus.getcolor.bright_red + "\nSource package(s) found in the mix!\n" + sisyphus.getcolor.reset) - print(sisyphus.getcolor.bright_yellow + "Use" + sisyphus.getcolor.reset + " " + "'" + - "sisyphus install" + " " + " ".join(pkgname) + " " + "--ebuild" + "'" + sisyphus.getcolor.reset) + print(sisyphus.getcolor.bright_yellow + "Use" + + sisyphus.getcolor.reset + " " + "'" + "sisyphus upgrade --ebuild" + "'") sys.exit() else: # don't silently fail if a source package requested without the --ebuild option needs a keyword, mask, REQUIRED_USE or USE change print(sisyphus.getcolor.bright_red + "\nInvalid request!\n" + sisyphus.getcolor.reset) - print(sisyphus.getcolor.bright_yellow + "Use" + sisyphus.getcolor.reset + " " + "'" + - "sisyphus install" + " " + " ".join(pkgname) + " " + "--ebuild" + "'" + sisyphus.getcolor.reset) + print(sisyphus.getcolor.bright_yellow + "Use" + + sisyphus.getcolor.reset + " " + "'" + "sisyphus upgrade --ebuild" + "'") sys.exit() else: print(sisyphus.getcolor.bright_red + -- cgit v1.2.3