poky/bitbake/lib/bb
Paulo Neves a8368651ff bitbake: fetcher: Fixed remote removal not throwing exception.
Before this fix it is assumed that the removal of the
remote can only fail because there is not remote to remove. This
is a false assumption. Example error which would be ignored:

git -c core.fsyncobjectfiles=0 remote rm origin failed with exit code 1, output:
Note: A branch outside the refs/remotes/ hierarchy was not removed;
to delete it, use:
  git branch -d master
error: could not lock config file config
error: Could not remove config section 'remote.origin'

Due to the masking of this error a stranger error will be
presented to the user, because this time we do not mask the
exception:

git -c core.fsyncobjectfiles=0 remote add --mirror=fetch origin https://github.com/ptsneves/tl-wn722.git failed with exit code 128, output:
fatal: remote origin already exists.

The most likely reason that the remote cannot be removed nor
modified is that the DL_DIR/git2 does not have permissions
compatible with the user running bitbake.

This commit fixes:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=12728

(Bitbake rev: 9c86c582a10c9b23abad7d34b6cbf12f7086294d)

Signed-off-by: Paulo Neves <ptsneves@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-08-28 10:32:08 +01:00
..
fetch2 bitbake: fetcher: Fixed remote removal not throwing exception. 2018-08-28 10:32:08 +01:00
parse bitbake: parse/ast: ensure saved event handlers really do get restored 2018-08-24 07:53:14 +01:00
pysh bitbake: bitbake: Convert to python 3 2016-06-02 08:24:02 +01:00
server bitbake: server/process: Always place the server logfile in the build directory 2018-07-25 16:48:27 +01:00
tests bitbake: fetch2: Use correct check in parameter handling in uri_replace() 2018-06-21 09:34:40 +01:00
ui bitbake: toaster: some recipe events do not include packages 2017-12-18 15:05:29 +00:00
__init__.py bitbake: bitbake: Bump version 1.39.0 -> 1.39.1 2018-08-23 09:02:54 +01:00
build.py bitbake: bitbake: Add support for multiconfig dependencies 2018-08-01 10:07:22 +01:00
cache_extra.py bitbake: bitbake: cooker: get extra information from recipe cache 2013-09-22 12:19:44 +01:00
cache.py bitbake: codeparser: Track oe.utils.conditional usage 2018-07-30 12:45:15 +01:00
checksum.py bitbake: checksum: sanity check path when recursively checksumming 2018-08-14 16:32:48 +01:00
codeparser.py bitbake: codeparser: Track oe.utils.conditional usage 2018-07-30 12:45:15 +01:00
command.py bitbake: cooker: clear extra config settings and remote datastores on client disconnect 2017-09-05 15:00:49 +01:00
compat.py bitbake: compat/server/utils: Jettison pre python 2.7.3 workarounds 2013-06-14 17:26:30 +01:00
cooker.py bitbake: bitbake: Add support for multiconfig dependencies 2018-08-01 10:07:22 +01:00
cookerdata.py bitbake: cookerdata: Issue warning if layer doesn't set LAYERSERIES_COMPAT_x 2018-04-06 11:39:49 +01:00
COW.py bitbake: lib/bb/COW.py: fix typo in Tim Ansell's name 2017-05-15 16:21:20 +01:00
daemonize.py bitbake: daemonize: Flush stdio on exit 2018-08-23 08:50:23 +01:00
data_smart.py bitbake: data_smart: Don't cache/process capitalised overrides 2017-05-18 13:19:55 +01:00
data.py bitbake: data: Micro performance optimisation tweak 2017-07-08 13:29:54 +01:00
event.py bitbake: event.py: fix typo 2018-08-14 16:32:48 +01:00
exceptions.py bitbake: bitbake: Convert to python 3 2016-06-02 08:24:02 +01:00
main.py bitbake: main/runqueue: Rework runall task and add runonly option 2018-02-14 15:26:03 +00:00
methodpool.py bitbake: event/utils/methodpool: Add a cache of compiled code objects 2015-12-22 00:02:05 +00:00
monitordisk.py bitbake: monitordisk: add event 2016-12-07 10:42:22 +00:00
msg.py bitbake: knotty: prevent extra logger from being enabled for tinfoil 2017-06-12 15:07:39 +01:00
namedtuple_with_abc.py bitbake: lib/bb/*.py: Typo fixes/grammar/comment fixes, nothing functional. 2014-08-25 08:57:45 +01:00
persist_data.py bitbake: prserv/persist_data/utils: Drop obsolete python2 imports 2017-01-09 13:39:13 +00:00
process.py bitbake: bitbake:process: flush stderr/stdout to log 2017-06-14 14:54:24 +01:00
progress.py bitbake: lib/bb/progress: avoid possibility of start event being reported twice 2016-07-26 08:10:35 +01:00
providers.py bitbake: providers: Fix determinism issue 2017-12-10 22:45:21 +00:00
remotedata.py bitbake: remotedata: enable transporting datastore from the client to the server 2016-12-14 12:25:07 +00:00
runqueue.py bitbake: runqueue: Move decision if a task can be started to one common place 2018-08-15 21:45:58 +01:00
siggen.py bitbake: bitbake: Add support for multiconfig dependencies 2018-08-01 10:07:22 +01:00
taskdata.py bitbake: bitbake: Add support for multiconfig dependencies 2018-08-01 10:07:22 +01:00
tinfoil.py bitbake: tinfoil: ensure get_recipe_info() returns Null if recipe not found 2017-11-21 13:06:45 +00:00
utils.py bitbake: bb/utils.py: add break_hardlinks helper 2018-08-16 09:50:42 +01:00