Update get_packages usages

This commit is contained in:
Waqar Ahmed
2023-03-28 15:15:07 +05:00
parent 9fb76bfd05
commit c414fa63d4
2 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ from .exceptions import CallError
from .utils.git_utils import push_changes, safe_checkout
from .utils.logger import LoggingContext
from .utils.manifest import update_packages_branch
from .utils.package import get_packages
from .utils.package import get_sources
from .utils.paths import BRANCH_OUT_LOG_DIR
@@ -28,7 +28,7 @@ def branch_out_repos(push_branched_out_repos):
logger.info('Starting branch out of source using %r branch', BRANCH_OUT_NAME)
for package in get_packages():
for package in get_sources():
logger.debug('Branching out %r', package.name)
skip_log = None
with LoggingContext(os.path.join('branchout', package.name), 'w'):

View File

@@ -3,7 +3,7 @@ import concurrent.futures
from .exceptions import CallError
from .utils.git_utils import retrieve_git_remote_and_sha, update_git_manifest
from .utils.package import get_packages
from .utils.package import get_sources
logger = logging.getLogger(__name__)
@@ -19,7 +19,7 @@ def checkout_sources():
'checkout_method': pkg.checkout,
'get_branch_override_method': pkg.get_branch_override,
'branch_override': None,
} for pkg in get_packages()
} for pkg in get_sources()
}
with concurrent.futures.ThreadPoolExecutor(max_workers=MAX_THREADS) as exc:
logger.info('Getting override for branches')