mirror of
https://github.com/truenas/scale-build.git
synced 2025-12-26 22:19:34 +00:00
Update get_packages usages
This commit is contained in:
@@ -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'):
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user