<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 2011-12-07 13:00, Koen Kooi wrote:
<blockquote
cite="mid:E5CF0974-DCA6-4DAA-859C-ED40990CC11E@dominion.thruhere.net"
type="cite">
<pre wrap="">
Op 7 dec. 2011, om 12:27 heeft Ulf Samuelsson het volgende geschreven:
</pre>
<blockquote type="cite">
<pre wrap="">On 2011-12-07 10:16, Richard Purdie wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Wed, 2011-12-07 at 09:27 +0100, Ulf Samuelsson wrote:
</pre>
<blockquote type="cite">
<pre wrap="">When I look at the "downloads" location I find a lot of files called.
"11_usagi_fix.patch.done"
but no "11_usagi_fix.patch" file in the directory.
If this is a indication of that a patch has been downloaded,
what happens if you for some reason or other delete your
OE-core directory and keep the downloads directory.
When you start from fresh, all the tags are then stale.
(Deleting the "downloads" directory seems a bad idea)
I think that if there should be tags in the "downloads" directory,
they should only reflect things which are downloaded to the
"downloads" directory, and nothing else.
As for the tags in the directory, I think a better approach
is to download a file "tarball.tar.bz2" to a different filename first
I.E: "tarball.tar.bz2.in-progress" and if the download completes
then move the file to "tarball.tar.bz2".
Should remove a lot of clutter from the "downloads" directory.
</pre>
</blockquote>
<pre wrap="">What we've tried to do is simplify the fetcher code paths in fetch2.
There were some many corner/special cases and different code paths it
was near impossible to tell what was going on. One of the side effects
is that local <a class="moz-txt-link-freetext" href="file://">file://</a> urls do touch the done stamp in the same way as
other downloads. The main reason for those files is now checksum
tracking. If the done stamps were part of tmpdir, we'd keep checksumming
the contents of the downloads at each build rather than once after the
download. The way the implementation works, there is very little risk
from stale stamps, it would just mean the checksum code wouldn't get
triggered and that is likely unneeded for a local <a class="moz-txt-link-freetext" href="file://">file://</a> url anyway.
So yes, its not ideal but looking at the code I'd be surprised if a
build ever broke due to it.
</pre>
</blockquote>
<pre wrap="">Maybe I am paranoid, but I think I remember seeing tarballs developing
bit rot when moved between different machines.
</pre>
</blockquote>
<pre wrap="">
And that's why checksums are checked before do_unpack.
</pre>
</blockquote>
<br>
Richard says that if the *.done file is there, then the checksum is
not calculated.<br>
Or that is at least how I interpret his comment.<br>
<br>
If the check is always there, why the tag?<br>
<br>
<br>
<br>
<blockquote
cite="mid:E5CF0974-DCA6-4DAA-859C-ED40990CC11E@dominion.thruhere.net"
type="cite">
<pre wrap=""></pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Openembedded-core mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Best Regards
Ulf Samuelsson
eMagii
</pre>
</body>
</html>