diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-06-08 16:10:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-06-08 16:10:24 +0100 |
commit | f587c2de87665b10e70b4143989572b19e43c08c (patch) | |
tree | 9d68aec0a5fa92d4f7a3a377b205a89610221a73 /src/backend/branchmaster.py | |
parent | 1d30457b03e7906770ee40a774320121e80a4bfd (diff) |
rename some constants to something more pretty
Diffstat (limited to 'src/backend/branchmaster.py')
-rw-r--r-- | src/backend/branchmaster.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/branchmaster.py b/src/backend/branchmaster.py index 6a114c5..d9a2b09 100644 --- a/src/backend/branchmaster.py +++ b/src/backend/branchmaster.py @@ -7,8 +7,8 @@ import sisyphus.filesystem @animation.wait('injecting gentoo linux portage tree - branch master') def setGitlabMasterStage1(): - if not os.path.isdir(os.path.join(sisyphus.filesystem.gentooEbuildDir, '.git')): - os.chdir(sisyphus.filesystem.gentooEbuildDir) + if not os.path.isdir(os.path.join(sisyphus.filesystem.portageRepoDir, '.git')): + os.chdir(sisyphus.filesystem.portageRepoDir) subprocess.call(['git', 'init', '-q']) subprocess.call(['git', 'remote', 'add', 'origin', 'https://gitlab.com/redcore/portage.git']) subprocess.call(['git', 'fetch', '--depth=1', 'origin', 'master', '--quiet']) @@ -16,8 +16,8 @@ def setGitlabMasterStage1(): @animation.wait('injecting redcore linux ebuild tree - branch master') def setGitlabMasterStage2(): - if not os.path.isdir(os.path.join(sisyphus.filesystem.redcoreEbuildDir, '.git')): - os.chdir(sisyphus.filesystem.redcoreEbuildDir) + if not os.path.isdir(os.path.join(sisyphus.filesystem.redcoreRepoDir, '.git')): + os.chdir(sisyphus.filesystem.redcoreRepoDir) subprocess.call(['git', 'init', '-q']) subprocess.call(['git', 'remote', 'add', 'origin', 'https://gitlab.com/redcore/redcore-desktop.git']) subprocess.call(['git', 'fetch', '--depth=1', 'origin', 'master', '--quiet']) @@ -39,8 +39,8 @@ def gitlabStart(): @animation.wait('injecting gentoo linux portage tree - branch master') def setPagureMasterStage1(): - if not os.path.isdir(os.path.join(sisyphus.filesystem.gentooEbuildDir, '.git')): - os.chdir(sisyphus.filesystem.gentooEbuildDir) + if not os.path.isdir(os.path.join(sisyphus.filesystem.portageRepoDir, '.git')): + os.chdir(sisyphus.filesystem.portageRepoDir) subprocess.call(['git', 'init', '-q']) subprocess.call(['git', 'remote', 'add', 'origin', 'https://pagure.io/redcore/portage.git']) subprocess.call(['git', 'fetch', '--depth=1', 'origin', 'master', '--quiet']) @@ -48,8 +48,8 @@ def setPagureMasterStage1(): @animation.wait('injecting redcore linux ebuild tree - branch master') def setPagureMasterStage2(): - if not os.path.isdir(os.path.join(sisyphus.filesystem.redcoreEbuildDir, '.git')): - os.chdir(sisyphus.filesystem.redcoreEbuildDir) + if not os.path.isdir(os.path.join(sisyphus.filesystem.redcoreRepoDir, '.git')): + os.chdir(sisyphus.filesystem.redcoreRepoDir) subprocess.call(['git', 'init', '-q']) subprocess.call(['git', 'remote', 'add', 'origin', 'https://pagure.io/redcore/redcore-desktop.git']) subprocess.call(['git', 'fetch', '--depth=1', 'origin', 'master', '--quiet']) |