mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
rrs/tools: drop update_repo()
This function is no longer needed - we now rely upon the layer index's code to do this (update through the update script, and checkout through setup_layer()). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
d4c400f7bf
commit
0aa4b93d18
|
@ -38,23 +38,6 @@ def get_logger(name, settings):
|
|||
|
||||
return logger
|
||||
|
||||
def update_repo(fetchdir, repo_name, repo_url, pull, logger):
|
||||
from layerindex import utils, recipeparse
|
||||
|
||||
path = os.path.join(fetchdir, repo_name)
|
||||
|
||||
logger.info("Fetching %s from remote repository %s"
|
||||
% (repo_name, repo_url))
|
||||
if not os.path.exists(path):
|
||||
out = utils.runcmd("git clone %s %s" % (repo_url, repo_name),
|
||||
fetchdir, logger = logger)
|
||||
elif pull == True:
|
||||
out = utils.runcmd("git pull", path, logger = logger)
|
||||
else:
|
||||
out = utils.runcmd("git fetch", path, logger = logger)
|
||||
|
||||
return path
|
||||
|
||||
def get_pv_type(pv):
|
||||
pv_type = ''
|
||||
if '+git' in pv:
|
||||
|
|
|
@ -15,7 +15,7 @@ import logging
|
|||
from tabulate import tabulate
|
||||
|
||||
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__))))
|
||||
from common import common_setup, update_repo, get_pv_type, get_logger
|
||||
from common import common_setup, get_pv_type, get_logger
|
||||
common_setup()
|
||||
from layerindex import utils
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user