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/branchnext.py | |
parent | 1d30457b03e7906770ee40a774320121e80a4bfd (diff) |
rename some constants to something more pretty
Diffstat (limited to 'src/backend/branchnext.py')
-rw-r--r-- | src/backend/branchnext.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/branchnext.py b/src/backend/branchnext.py index 5c9e390..858de86 100644 --- a/src/backend/branchnext.py +++ b/src/backend/branchnext.py @@ -7,8 +7,8 @@ import sisyphus.filesystem @animation.wait('injecting gentoo linux portage tree - branch next') def setGitlabNextStage1(): - 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', 'next', '--quiet']) @@ -16,8 +16,8 @@ def setGitlabNextStage1(): @animation.wait('injecting redcore linux ebuild tree - branch next') def setGitlabNextStage2(): - 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', 'next', '--quiet']) @@ -39,8 +39,8 @@ def startGitlab(): @animation.wait('injecting gentoo linux portage tree - branch next') def setPagureNextStage1(): - 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', 'next', '--quiet']) @@ -48,8 +48,8 @@ def setPagureNextStage1(): @animation.wait('injecting redcore linux ebuild tree - branch next') def setPagureNextStage2(): - 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', 'next', '--quiet']) |