diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-03-20 17:09:27 +0000 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-08-11 11:28:14 +0100 |
commit | 84709dbca6c0da26e61809d7cb8df2300b6ce288 (patch) | |
tree | 03f4721fd76f8ef3b7301dc5f2b1635aa3aad262 /layerindex/recipeparse.py | |
parent | 1a9f73d4a75a6c64fd90d10532b030a880c11353 (diff) | |
download | openembedded-core-contrib-84709dbca6c0da26e61809d7cb8df2300b6ce288.tar.gz |
Add recipe bulk change feature
This provides a way to set "meta" fields (SUMMARY, DESCRIPTION,
HOMEPAGE, BUGTRACKER, SECTION, and LICENSE) for a number of recipes at
once, and then download those changes in the form of one or more patch
files which can be submitted for merging into the layer.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/recipeparse.py')
-rw-r--r-- | layerindex/recipeparse.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/layerindex/recipeparse.py b/layerindex/recipeparse.py index 2f9a6684de..0b5ae62c74 100644 --- a/layerindex/recipeparse.py +++ b/layerindex/recipeparse.py @@ -90,6 +90,14 @@ def init_parser(settings, branch, bitbakepath, enable_tracking=False, nocheckout return (tinfoil, tempdir) +def checkout_layer_branch(layerbranch, repodir): + if layerbranch.actual_branch: + branchname = layerbranch.actual_branch + else: + branchname = layerbranch.branch.name + out = utils.runcmd("git checkout origin/%s" % branchname, repodir) + out = utils.runcmd("git clean -f -x", repodir) + def setup_layer(config_data, fetchdir, layerdir, layer, layerbranch): # Parse layer.conf files for this layer and its dependencies # This is necessary not just because BBPATH needs to be set in order @@ -109,3 +117,16 @@ def setup_layer(config_data, fetchdir, layerdir, layer, layerbranch): config_data_copy.delVar('LAYERDIR') return config_data_copy +def get_var_files(fn, varlist, d): + import bb.cache + varfiles = {} + envdata = bb.cache.Cache.loadDataFull(fn, [], d) + for v in varlist: + history = envdata.varhistory.get_variable_files(v) + if history: + actualfile = history[-1] + else: + actualfile = None + varfiles[v] = actualfile + + return varfiles |