repos: Fix relative path for repos

If a repo path is relative, append the kas work dir to it.

Background: The path ends up in bblayers.conf

Without this change the following example will fail:

--------------------------------------------------------
header:
     version: 4
machine: qemux86
repos:
     poky:
         url: "https://git.yoctoproject.org/git/poky"
         refspec: "rocko"
         path: "thirdparty/poky"
         layers:
             meta:
             meta-poky:
--------------------------------------------------------

Signed-off-by: Georg Lutz <georg@georglutz.de>
This commit is contained in:
Georg Lutz
2018-01-25 11:12:58 +01:00
committed by Daniel Wagner
parent 37cd2f42d5
commit 7fa75d94c0
2 changed files with 7 additions and 1 deletions

View File

@@ -338,6 +338,7 @@ Configuration reference
If the ``url`` as well as the ``path`` is defined, the path is used to
overwrite the checkout directory, that defaults to ``kas_work_dir``
+ ``repo.name``.
In case of a relative path name ``kas_work_dir`` is prepended.
* ``layers``: dict [optional]
Contains the layers from this repository that should be added to the