diff options
| author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-12-29 11:14:26 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-30 09:21:42 +0000 |
| commit | b264f5629b4c9399c6e8e298121c6dba424b95fe (patch) | |
| tree | da1515534963cd852de1abadb308dbcd761969a1 /bitbake/bin/bitbake-layers | |
| parent | 6dde745bf90d9f9e52af3779df28879d91cbc64c (diff) | |
| download | poky-b264f5629b4c9399c6e8e298121c6dba424b95fe.tar.gz | |
bitbake: bitbake-layers: fix error handling in add-layer / remove-layer
* Fix add-layer error message when a layer is already in BBLAYERS
* Ensure we show an error message if we can't find BBLAYERS at all
(Bitbake rev: 1c743fd2103730e27699dd55efc6914d3b0c3702)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-layers')
| -rwxr-xr-x | bitbake/bin/bitbake-layers | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index edb4d2f03a..98794981a0 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers | |||
| @@ -130,7 +130,7 @@ usage: add-layer <layerdir> | |||
| 130 | (notadded, _) = bb.utils.edit_bblayers_conf(bblayers_conf, layerdir, None) | 130 | (notadded, _) = bb.utils.edit_bblayers_conf(bblayers_conf, layerdir, None) |
| 131 | if notadded: | 131 | if notadded: |
| 132 | for item in notadded: | 132 | for item in notadded: |
| 133 | sys.stderr.write("Specified layer %s not in BBLAYERS\n" % item) | 133 | sys.stderr.write("Specified layer %s is already in BBLAYERS\n" % item) |
| 134 | 134 | ||
| 135 | 135 | ||
| 136 | def do_remove_layer(self, dirname): | 136 | def do_remove_layer(self, dirname): |
