From f587c2de87665b10e70b4143989572b19e43c08c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 8 Jun 2020 16:10:24 +0100 Subject: rename some constants to something more pretty --- src/backend/branchnext.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/backend/branchnext.py') 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']) -- cgit v1.2.3