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

@@ -49,7 +49,7 @@ except ImportError:
return platform.dist()[0]
from .repos import Repo
from .libkas import run_cmd, repos_fetch, repo_checkout
from .libkas import run_cmd, repos_fetch
__license__ = 'MIT'
__copyright__ = 'Copyright (c) Siemens AG, 2017'
@@ -91,7 +91,7 @@ class Config:
repos_fetch(self, missing_repos)
for repo in missing_repos:
repo_checkout(self, repo)
repo.checkout(self)
repo_paths = {r: repo_dict[r].path for r in repo_dict}