diff options
author | Jeonghoon Park <jh1979.park@samsung.com> | 2021-04-29 10:51:02 +0900 |
---|---|---|
committer | 박정훈/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <jh1979.park@samsung.com> | 2021-05-04 09:41:45 +0900 |
commit | dd8985da6911c33565abcadadf2948ba7673d2b3 (patch) | |
tree | a18f9896018afd64a168e3aa30d96542135352a0 | |
parent | 43aa6a8c9c837bdc1543d159e234f777032d5e4b (diff) | |
download | tic-core-dd8985da6911c33565abcadadf2948ba7673d2b3.tar.gz tic-core-dd8985da6911c33565abcadadf2948ba7673d2b3.tar.bz2 tic-core-dd8985da6911c33565abcadadf2948ba7673d2b3.zip |
set requested architecture only when using default recipe
-rw-r--r-- | tic/parser/recipe_parser.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tic/parser/recipe_parser.py b/tic/parser/recipe_parser.py index 8177131..986f0b6 100644 --- a/tic/parser/recipe_parser.py +++ b/tic/parser/recipe_parser.py @@ -192,6 +192,9 @@ class RecipeParser(object): # default recipe if data['url'] == DEFAULT_RECIPE_NAME: self.recipes[data['url']] = default_recipe.get_default_recipe() + # assign requested architecture to the default recipe (only) + if self.arch is not None: + self.recipes[data['url']]['Recipe']['Architecture'] = self.arch elif HTTP_HTTPS_PROT.match(data['url']): with contextlib.closing(urllib2.urlopen(data.get('url'))) as op: self.recipes[data['url']] = yaml.load(op.read(), Loader=yaml.BaseLoader) @@ -247,7 +250,6 @@ class RecipeParser(object): break def _get_all_repositories(self): - def _get_repo_from_recipe(repo_names, repo_list): if not repo_names or not repo_list: return None |