diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-10-03 11:40:22 +1300 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-10-03 11:42:51 +1300 |
commit | 36d315972bb817152988931421f845a68b679953 (patch) | |
tree | 2a725fffa4d5da0d08eafd644a54edcabc3b1913 /layerindex/update.py | |
parent | fdcde0071080a59e1fad17a9479f3d8ca065e8cb (diff) | |
download | openembedded-core-contrib-36d315972bb817152988931421f845a68b679953.tar.gz |
update: allow preserving temp directory
If you're diagnosing problems with the bitbake server when running the
update script, then you need to be able to look at
bitbake-cookerdaemon.log, but you couldn't do that after the fact
because the temporary directory it gets written out to was being
unconditionally deleted. Add a --keep-temp option which preserves it and
some debug messages to tell you where it is.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/update.py')
-rwxr-xr-x | layerindex/update.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layerindex/update.py b/layerindex/update.py index 2d578df8a7..d1e67a0eb6 100755 --- a/layerindex/update.py +++ b/layerindex/update.py @@ -85,6 +85,8 @@ def prepare_update_layer_command(options, branch, layer, initial=False): cmd += ' -d' elif options.loglevel == logging.ERROR: cmd += ' -q' + if options.keep_temp: + cmd += ' --keep-temp' return cmd def update_actual_branch(layerquery, fetchdir, branch, options, update_bitbake, bitbakepath): @@ -165,6 +167,9 @@ def main(): parser.add_option("-q", "--quiet", help = "Hide all output except error messages", action="store_const", const=logging.ERROR, dest="loglevel") + parser.add_option("", "--keep-temp", + help = "Preserve temporary directory at the end instead of deleting it", + action="store_true") options, args = parser.parse_args(sys.argv) if len(args) > 1: |