aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/bulkchange.py
AgeCommit message (Collapse)Author
2018-05-01bulkchange.py: use oe.recipeutils code to patch recipesPaul Eggleton
There were several issues with this code, including that it used SortedDict which was removed in Django 1.9 and that it seemed not to have been fully updated to accommodate changes in bitbake's recipe parsing API. In the end I decided the simplest thing would be to move it over to using oe.recipeutils.patch_recipe() which is actually a now much more mature version of the code that originally started life here. With that we can get the bulk change functionality working again and gain some of the improvements in behaviour that we've developed in oe.recipeutils.patch_recipe(), as well as avoiding effectively duplicated code. Implements [YOCTO #9730]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-04-24bulkchange.py: fix regressionPaul Eggleton
It seems that in df492b127723973e5e2c18c74b1fee853d41bc69 the original intention was to move setup_layer to the utils module, but that didn't actually get done in the final patch - however the change was made here to accommodate the move, meaning it's been broken since then. Revert that so we're actually calling the function in the place it exists. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2017-01-11layerindex: Update tinfoil to call shutdown methodAníbal Limón
The new client/server API of tinfoil requires explicit call of shutdown method to send the event for finalize cooker process. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-10-18layerindex/recipeparse.py: refactor setup_tinfoil, checkout_layer_branch, ↵Liam R. Howlett
parse_layer_conf to utils.py Move functions to utils to be used by other classes. Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com>
2016-06-12Support (and require) Python 3Paul Eggleton
We need to be able to support Python 3 so that we can parse master of OE-Core with bitbake (which now requires it). This now means the interface itself and the update script require Python 3.4+. Part of the implementation for [YOCTO #9704]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-06-12bulkchange: drop temp paths in multi-patch tarballPaul Eggleton
We were getting temporary paths appearing in the tarball that gets created to allow you to download the patches for a bulk change operation that crosses multiple layers - we don't need those. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-05-30Allow blanking out field values in bulk changePaul Eggleton
If you're moving a short description value from DESCRIPTION to SUMMARY then part of that is setting DESCRIPTION to blank, however that wasn't possible - the code was assuming that a null value meant "keep the original value". Change the logic so that the value in the bulk change object is always set and is compared to the original value to see if it is different. This provides less safety against bulk change data going stale in the face of the metadata being updated, but without using an additional "magic" field value that's the price we have to pay, and it's unlikely to bother too many people I would imagine. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-09-05Implement locking for update/bulkchange processPaul Eggleton
Avoid the possibility of these two clashing especially when multiple branches are being used. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-08-11Add recipe bulk change featurePaul Eggleton
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>