diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-02-02 01:07:55 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-02-02 01:07:55 +0000 |
commit | ed3747e4ff721914d1df6b62788a91a1e8b3f741 (patch) | |
tree | 25f2987643c99657eb8f7945d1f68c19c9cfa2bf /src/backend/check.py | |
parent | fb13a317b1468c6070f4c6131a6526ffbf284511 (diff) |
* better explain some used terms
* update the help menu and CLI documentation
* remove animations from setjobs module (it takes less than a second, so it's pointless)
* make some error messages less cryptic && offer help to understand them
* don't kill the graphical interface right away if there is a missmatch, display the error, offer help && and then die in 10 seconds
Diffstat (limited to 'src/backend/check.py')
-rw-r--r-- | src/backend/check.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/check.py b/src/backend/check.py index 2c4cedb..d764a85 100644 --- a/src/backend/check.py +++ b/src/backend/check.py @@ -9,23 +9,23 @@ def root(): return True if os.getuid() == 0 else False def branch(): - branchRepoMissmatch = int() + branchBinhostMatch = int() binhostURL = sisyphus.binhost.getURL() localBranch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']) os.chdir(sisyphus.filesystem.portageRepoDir) if "packages-next" in binhostURL: if localBranch.decode().strip() == "next": - branchRepoMissmatch = int(0) + branchBinhostMatch = int(1) else: - branchRepoMissmatch = int(1) + branchBinhostMatch = int(0) else: if localBranch.decode().strip() == "master": - branchRepoMissmatch = int(0) + branchBinhostMatch = int(1) else: - branchRepoMissmatch = int(1) + branchBinhostMatch = int(0) - return branchRepoMissmatch,localBranch + return branchBinhostMatch,localBranch def portage(): if os.path.isdir(os.path.join(sisyphus.filesystem.portageRepoDir, '.git')): |