diff options
Diffstat (limited to 'scripts/lib/recipetool')
-rw-r--r-- | scripts/lib/recipetool/create.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 834633610a..4da745b732 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py | |||
@@ -518,7 +518,7 @@ def create_recipe(args): | |||
518 | # We need this checking mechanism to improve the recipe created by recipetool and devtool | 518 | # We need this checking mechanism to improve the recipe created by recipetool and devtool |
519 | # is able to parse and build by bitbake. | 519 | # is able to parse and build by bitbake. |
520 | # If there is no input for branch name, then check for branch name with SRCREV provided. | 520 | # If there is no input for branch name, then check for branch name with SRCREV provided. |
521 | if not srcbranch and not nobranch and srcrev and (srcrev != '${AUTOREV}'): | 521 | if not srcbranch and not nobranch and srcrev and (srcrev != '${AUTOREV}') and scheme in ['git', 'gitsm']: |
522 | try: | 522 | try: |
523 | cmd = 'git branch -r --contains' | 523 | cmd = 'git branch -r --contains' |
524 | check_branch, check_branch_err = bb.process.run('%s %s' % (cmd, srcrev), cwd=srctree) | 524 | check_branch, check_branch_err = bb.process.run('%s %s' % (cmd, srcrev), cwd=srctree) |
@@ -549,7 +549,7 @@ def create_recipe(args): | |||
549 | params['branch'] = srcbranch | 549 | params['branch'] = srcbranch |
550 | srcuri = bb.fetch2.encodeurl((scheme, network, path, user, passwd, params)) | 550 | srcuri = bb.fetch2.encodeurl((scheme, network, path, user, passwd, params)) |
551 | 551 | ||
552 | if storeTagName: | 552 | if storeTagName and scheme in ['git', 'gitsm']: |
553 | # Re-introduced tag variable from storeTagName | 553 | # Re-introduced tag variable from storeTagName |
554 | # Check srcrev using tag and check validity of the tag | 554 | # Check srcrev using tag and check validity of the tag |
555 | cmd = ('git rev-parse --verify %s' % (storeTagName)) | 555 | cmd = ('git rev-parse --verify %s' % (storeTagName)) |