repos: move repository functions into repos.py

This commit just moves core around and does not contain any logical
changes.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
This commit is contained in:
Henning Schild
2018-01-05 16:00:24 +01:00
committed by Daniel Wagner
parent dc8d15c3be
commit 941fa38a2d
4 changed files with 92 additions and 91 deletions

View File

@@ -28,7 +28,7 @@ import logging
import shutil
import os
from .libkas import (ssh_cleanup_agent, ssh_setup_agent, ssh_no_host_key_check,
get_build_environ, repos_fetch, repo_checkout)
get_build_environ, repos_fetch)
__license__ = 'MIT'
__copyright__ = 'Copyright (c) Siemens AG, 2017'
@@ -214,4 +214,4 @@ class ReposCheckout(Command):
def execute(self, config):
for repo in config.get_repos():
repo_checkout(config, repo)
repo.checkout(config)