poky/bitbake/lib/bb/fetch2
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
..
__init__.py bitbake: fetch2: Use correct check in parameter handling in uri_replace() 2018-06-21 09:34:40 +01:00
bzr.py bitbake: fetch2: unify the way fetchers determine DL_DIR and FETCHCMD 2018-06-15 17:57:30 +01:00
clearcase.py bitbake: fetch2: fix import error for Python 3.6.5 2018-05-29 21:07:46 +01:00
cvs.py bitbake: fetch2: unify the way fetchers determine DL_DIR and FETCHCMD 2018-06-15 17:57:30 +01:00
git.py bitbake: fetcher: Fixed remote removal not throwing exception. 2018-08-28 10:32:08 +01:00
gitannex.py bitbake: fetch/gitannex: add support for shallow mirror tarballs 2017-06-02 13:36:57 +01:00
gitsm.py bitbake: fetch/gitsm: avoid live submodule fetching during unpack() 2018-06-07 08:53:19 +01:00
hg.py bitbake: fetch2: unify the way fetchers determine DL_DIR and FETCHCMD 2018-06-15 17:57:30 +01:00
local.py bitbake: fetch/local: Drop FILESDIR 2017-04-05 23:20:03 +01:00
npm.py bitbake: fetch2: fix import error for Python 3.6.5 2018-05-29 21:07:46 +01:00
osc.py bitbake: fetch2: unify the way fetchers determine DL_DIR and FETCHCMD 2018-06-15 17:57:30 +01:00
perforce.py bitbake: fetch2: unify the way fetchers determine DL_DIR and FETCHCMD 2018-06-15 17:57:30 +01:00
repo.py bitbake: fetch2: unify the way fetchers determine DL_DIR and FETCHCMD 2018-06-15 17:57:30 +01:00
s3.py bitbake: s3.py: Remove hardcoded aws 2017-03-30 10:42:18 +01:00
sftp.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
ssh.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
svn.py bitbake: fetch2: unify the way fetchers determine DL_DIR and FETCHCMD 2018-06-15 17:57:30 +01:00
wget.py bitbake: fetch/wget: use with to ensure the response is closed 2017-11-21 13:06:45 +00:00