summaryrefslogtreecommitdiff
path: root/src/backend/branchsetup.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-18 12:26:10 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-18 12:26:10 +0100
commita71ffe9cd09164182584bb01b3993881f7766dfd (patch)
tree3131c0ac94300b27d5983249f54769ec95a89689 /src/backend/branchsetup.py
parentf28b67f3d6910f71e20da86367205f3c3660ff72 (diff)
make sisyphus.check.root more portable, replace it everywhere
Diffstat (limited to 'src/backend/branchsetup.py')
-rw-r--r--src/backend/branchsetup.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/backend/branchsetup.py b/src/backend/branchsetup.py
index 23670d1..e0d27a6 100644
--- a/src/backend/branchsetup.py
+++ b/src/backend/branchsetup.py
@@ -82,12 +82,14 @@ def warnAboutBinaryRepository(branch,remote):
def start(branch,remote):
- sisyphus.check.root()
- sisyphus.branchreset.start()
- injectGentooPortageTree(branch,remote)
- injectRedcoreEbuildOverlay(branch,remote)
- injectRedcorePortageConfig(branch,remote)
- sisyphus.setjobs.start()
- sisyphus.setprofile.start()
- sisyphus.metadata.regenAnimated()
- warnAboutBinaryRepository(branch,remote)
+ if sisyphus.check.root() == 0:
+ sisyphus.branchreset.start()
+ injectGentooPortageTree(branch,remote)
+ injectRedcoreEbuildOverlay(branch,remote)
+ injectRedcorePortageConfig(branch,remote)
+ sisyphus.setjobs.start()
+ sisyphus.setprofile.start()
+ sisyphus.metadata.regenAnimated()
+ warnAboutBinaryRepository(branch,remote)
+ else:
+ sys.exit("\nYou need root permissions to do this, exiting!\n")