summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-24 14:55:10 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-24 14:55:10 +0000
commit88c8dcd9b18f479d5ad3f523018d406654287fe6 (patch)
tree432966f5d466bafe06f8dfda2c87fd84837159d8 /src
parent069e6722957d804313cce91a99f3567ee0d7a4d6 (diff)
don't silently fail if a source package requested without the --ebuild option needs a keyword, mask, REQUIRED_USE or USE change
Diffstat (limited to 'src')
-rw-r--r--src/backend/installbinary.py3
-rw-r--r--src/backend/upgradebinary.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/backend/installbinary.py b/src/backend/installbinary.py
index 9658bf9..d161a3c 100644
--- a/src/backend/installbinary.py
+++ b/src/backend/installbinary.py
@@ -61,5 +61,8 @@ def start(pkgname):
sys.exit("\n" + "No package found; Quitting." + "\n")
else:
sys.exit("\n" + "Source package(s) found in the mix;" + " " + "Use" + " " + "'" + "sisyphus install" + " " + " ".join(pkgname) + " " + "--ebuild" + "'" + ";" + " " + "Quitting." + "\n")
+ else:
+ # don't silently fail if a source package requested without the --ebuild option needs a keyword, mask, REQUIRED_USE or USE change
+ sys.exit("\n" + "Invalid request;" " " + "Use" + " " + "'" + "sisyphus install" + " " + " ".join(pkgname) + " " + "--ebuild" + "'" + ";" + " " + "Quitting." + "\n")
else:
sys.exit("\nYou need root permissions to do this, exiting!\n")
diff --git a/src/backend/upgradebinary.py b/src/backend/upgradebinary.py
index 2bb7905..9b14868 100644
--- a/src/backend/upgradebinary.py
+++ b/src/backend/upgradebinary.py
@@ -61,5 +61,8 @@ def start():
sys.exit("\n" + "No package upgrades found; Quitting." + "\n")
else:
sys.exit("\n" + "Source package(s) found in the mix;" + " " + "Use" + " " + "'" + "sisyphus upgrade --ebuild" + "'" + ";" + " " + "Quitting." + "\n")
+ else:
+ # don't silently fail if a source package requested without the --ebuild option needs a keyword, mask, REQUIRED_USE or USE change
+ sys.exit("\n" + "Invalid request;" " " + "Use" + " " + "'" + "sisyphus upgrade --ebuild" + "'" + ";" + " " + "Quitting." + "\n")
else:
sys.exit("\nYou need root permissions to do this, exiting!\n")