diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-02-11 14:13:35 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-11 12:33:03 +0000 |
commit | a5095d146d124478cda34bb3fd734210223511a2 (patch) | |
tree | 54ba0e3ad821c563e012c41359d61f520cc459e5 | |
parent | ca5a36cbd16ad497edcceb74ff44c718f73aa218 (diff) | |
download | poky-a5095d146d124478cda34bb3fd734210223511a2.tar.gz |
recipetool: create: set S when we set SRC_URI from local git repo
If you specify a local directory which happens to be a git repository
with an origin remote (and it is in fact remote), we can use that for
SRC_URI as implemented by OE-Core revision
b143d414846854dc8b3e0a47358daf5646eded38, however we also need to set S
if the recipe is going to be of any use fetching from that SRC_URI
later.
(From OE-Core rev: 8bbbd2d63f1bc752f9a30054a089dc2caf5fd84c)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | scripts/lib/recipetool/create.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index daf13fb50e..3e4bab8afe 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py | |||
@@ -369,6 +369,7 @@ def create_recipe(args): | |||
369 | if len(splitline) > 1: | 369 | if len(splitline) > 1: |
370 | if splitline[0] == 'origin' and '://' in splitline[1]: | 370 | if splitline[0] == 'origin' and '://' in splitline[1]: |
371 | srcuri = reformat_git_uri(splitline[1]) | 371 | srcuri = reformat_git_uri(splitline[1]) |
372 | srcsubdir = 'git' | ||
372 | break | 373 | break |
373 | 374 | ||
374 | if args.src_subdir: | 375 | if args.src_subdir: |