diff options
-rwxr-xr-x | scripts/combo-layer | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/combo-layer b/scripts/combo-layer index d1291751fa..07b3382f0a 100755 --- a/scripts/combo-layer +++ b/scripts/combo-layer | |||
@@ -79,6 +79,14 @@ local_repo_dir = ~/src/oecore | |||
79 | dest_dir = . | 79 | dest_dir = . |
80 | last_revision = | 80 | last_revision = |
81 | 81 | ||
82 | # it's also possible to embed python code in the config values. Similar | ||
83 | # to bitbake it considers every value starting with @ to be a python script. | ||
84 | # So local_repo could be easily configured using an environment variable as: | ||
85 | # | ||
86 | # [bitbake] | ||
87 | # local_repo = @os.getenv("LOCAL_REPO_DIR") + "/bitbake" | ||
88 | # | ||
89 | |||
82 | # more components ... | 90 | # more components ... |
83 | 91 | ||
84 | """ | 92 | """ |
@@ -91,7 +99,10 @@ last_revision = | |||
91 | for repo in self.parser.sections(): | 99 | for repo in self.parser.sections(): |
92 | self.repos[repo] = {} | 100 | self.repos[repo] = {} |
93 | for (name, value) in self.parser.items(repo): | 101 | for (name, value) in self.parser.items(repo): |
94 | self.repos[repo][name] = value | 102 | if value.startswith("@"): |
103 | self.repos[repo][name] = eval(value.strip("@")) | ||
104 | else: | ||
105 | self.repos[repo][name] = value | ||
95 | 106 | ||
96 | def update(self, repo, option, value): | 107 | def update(self, repo, option, value): |
97 | self.parser.set(repo, option, value) | 108 | self.parser.set(repo, option, value) |