<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/bitbake/lib/bb/fetch2/git.py, branch thud-20.0.1</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=thud-20.0.1</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=thud-20.0.1'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2018-11-26T20:16:24+00:00</updated>
<entry>
<title>bitbake: fetch/git: fix AttributeError in shallow extraction logic</title>
<updated>2018-11-26T20:16:24+00:00</updated>
<author>
<name>Christopher Larson</name>
<email>chris_larson@mentor.com</email>
</author>
<published>2018-11-21T18:14:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=93fc92cf42b07ad9896ace7969e79e2bb25b46ea'/>
<id>urn:sha1:93fc92cf42b07ad9896ace7969e79e2bb25b46ea</id>
<content type='text'>
This code checks to see if shallow is either disabled or the tarball is
missing, but the else block tries to print the tarball filename, and
this attribute doesn't exist at all when shallow is disabled. Handle the
two cases separately to give sane errors for both cases without the
exception:

    Exception: AttributeError: 'FetchData' object has no attribute 'fullshallow'

(Bitbake rev: b0ad961064ef6ecd77fab3435e5652c4ae284426)

Signed-off-by: Christopher Larson &lt;chris_larson@mentor.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: fetch2/git: provide information about missing sources</title>
<updated>2018-10-18T09:59:27+00:00</updated>
<author>
<name>Urs Fässler</name>
<email>urs.fassler@bbv.ch</email>
</author>
<published>2018-10-08T08:15:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=a8a077cafb0584dbb4ad4cb8a721b4d50b4180ef'/>
<id>urn:sha1:a8a077cafb0584dbb4ad4cb8a721b4d50b4180ef</id>
<content type='text'>
Provide more information in the case the sources are not found in the
unpack step.

(Bitbake rev: 27a2214bf6f2e7c61bfc422a20959a55f7e0d25d)

Signed-off-by: Urs Fässler &lt;urs.fassler@bbv.ch&gt;
Signed-off-by: Pascal Bach &lt;pascal.bach@siemens.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: fetch2/git: explicitly show the decision logic to select the source in code</title>
<updated>2018-10-18T09:59:26+00:00</updated>
<author>
<name>Urs Fässler</name>
<email>urs.fassler@bbv.ch</email>
</author>
<published>2018-10-08T08:15:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=8553b2c11131c2c17af9a7cb3f992c204eac564a'/>
<id>urn:sha1:8553b2c11131c2c17af9a7cb3f992c204eac564a</id>
<content type='text'>
(Bitbake rev: 78d8fb3a7899e1404a513be1c2b2b4440da8b12d)

Signed-off-by: Urs Fässler &lt;urs.fassler@bbv.ch&gt;
Signed-off-by: Pascal Bach &lt;pascal.bach@siemens.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: fetch2/git: prevent access to non-existing clonedir</title>
<updated>2018-10-18T09:59:26+00:00</updated>
<author>
<name>Urs Fässler</name>
<email>urs.fassler@bbv.ch</email>
</author>
<published>2018-10-08T08:15:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=0d4fe0602ef4ac80f3cea471e48b96b71a585669'/>
<id>urn:sha1:0d4fe0602ef4ac80f3cea471e48b96b71a585669</id>
<content type='text'>
A user friendly error is throw when neither the clonedir nor
fullshallow exist. Without the check, a difficult to interpret error
is throw from within the fetch command.

(Bitbake rev: 30cf2506007d25162f0805051212f54c39034ff3)

Signed-off-by: Urs Fässler &lt;urs.fassler@bbv.ch&gt;
Signed-off-by: Pascal Bach &lt;pascal.bach@siemens.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: fetch2/git: use correct check to decide if the shallow tarball should be unpacked</title>
<updated>2018-10-04T22:00:24+00:00</updated>
<author>
<name>Urs Fässler</name>
<email>urs.fassler@bbv.ch</email>
</author>
<published>2018-10-03T12:04:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=82f32d99f761c346015e1010038ca7e989b2d0c1'/>
<id>urn:sha1:82f32d99f761c346015e1010038ca7e989b2d0c1</id>
<content type='text'>
The shallow_tarball check is never true due a check on the caller side.
The tarball check is not related to the code on the caller side.

(Bitbake rev: 086eddcf8c7520ff5c52ce2a11ca9bf5b5fe5d7e)

Signed-off-by: Urs Fässler &lt;urs.fassler@bbv.ch&gt;
Signed-off-by: Pascal Bach &lt;pascal.bach@siemens.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: fetch2/git: prevent access to non-existing fullshallow tarball</title>
<updated>2018-10-04T22:00:24+00:00</updated>
<author>
<name>Urs Fässler</name>
<email>urs.fassler@bbv.ch</email>
</author>
<published>2018-10-03T12:04:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b907303b92f597d159d1057a9d47148a23f30219'/>
<id>urn:sha1:b907303b92f597d159d1057a9d47148a23f30219</id>
<content type='text'>
(Bitbake rev: b7f00a8c11672a2ee0408e210fb174cda3384e3f)

Signed-off-by: Urs Fässler &lt;urs.fassler@bbv.ch&gt;
Signed-off-by: Pascal Bach &lt;pascal.bach@siemens.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: fetch2/git: improve readability of method need_update</title>
<updated>2018-10-04T22:00:24+00:00</updated>
<author>
<name>Urs Fässler</name>
<email>urs.fassler@bbv.ch</email>
</author>
<published>2018-10-03T12:04:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=073c62cb56f3cd45d9ae28e0fcfc522be7480d4f'/>
<id>urn:sha1:073c62cb56f3cd45d9ae28e0fcfc522be7480d4f</id>
<content type='text'>
To improve the readability we extract the different scenarios of why
the clonedir needs an update.

(Bitbake rev: 9038e029f4f0ab413727de76c74248cbb3cdc9ea)

Signed-off-by: Urs Fässler &lt;urs.fassler@bbv.ch&gt;
Signed-off-by: Pascal Bach &lt;pascal.bach@siemens.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: fetcher: Fixed remote removal not throwing exception.</title>
<updated>2018-08-28T09:32:08+00:00</updated>
<author>
<name>Paulo Neves</name>
<email>ptsneves@gmail.com</email>
</author>
<published>2018-08-27T19:38:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=a8368651ffed1bd6c4715a37dfe9f40c48ca23c4'/>
<id>urn:sha1:a8368651ffed1bd6c4715a37dfe9f40c48ca23c4</id>
<content type='text'>
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 &lt;ptsneves@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: fetch2: unify the way fetchers determine DL_DIR and FETCHCMD</title>
<updated>2018-06-15T16:57:30+00:00</updated>
<author>
<name>Andre McCurdy</name>
<email>armccurdy@gmail.com</email>
</author>
<published>2018-06-05T19:13:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=783829427157b82dd021be345fe00afdf4d84a68'/>
<id>urn:sha1:783829427157b82dd021be345fe00afdf4d84a68</id>
<content type='text'>
Currently there is quite some variation between the fetchers in terms
of how they determine the subdirectory within DL_DIR and the base
fetch command to run. Some rely on variables being set externally
(e.g. from bitbake.conf in oe-core), some respect these external
variables but provide fallback defaults and some use only hardcoded
internal values. Try to unify the approach used across the various
fetchers.

(Bitbake rev: efd5e35af4b08501c67e8b30f30d9457f6fdf610)

Signed-off-by: Andre McCurdy &lt;armccurdy@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>bitbake: fetch/git: make fewer calls to _contains_ref() from download()</title>
<updated>2018-05-22T12:13:19+00:00</updated>
<author>
<name>Andre McCurdy</name>
<email>armccurdy@gmail.com</email>
</author>
<published>2018-05-08T01:02:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b68ed05be66eb045cb3fc74b201ce798766c3d1a'/>
<id>urn:sha1:b68ed05be66eb045cb3fc74b201ce798766c3d1a</id>
<content type='text'>
Updating a local git repo clone currently results in multiple calls
to self._contains_ref(), some of which appear to be redundant and can
be eliminated by minor tweaks to the logic in download().

Also drop redundant calls to os.path.exists(ud.clonedir) before
self.need_update(), since need_update() includes its own built-in
check for the existance of ud.clonedir.

(Bitbake rev: 61b0df5523afc8f805043f3adc9c106690e6f133)

Signed-off-by: Andre McCurdy &lt;armccurdy@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
