Openembedded Core Discussions
 help / color / mirror / Atom feed
* Checksum failure encountered with download
@ 2013-04-11 13:30 Martin Jansa
  2013-04-11 21:40 ` [bitbake-devel] " Richard Purdie
  2013-04-12 19:44 ` Trevor Woerner
  0 siblings, 2 replies; 5+ messages in thread
From: Martin Jansa @ 2013-04-11 13:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 849 bytes --]

Hi,

when fetcher fails with ChecksumError it shows error like in subject and
tries another MIRRORs

Would anyone object to keep fetched source with wrong checksum in
downloads directory (renamed so it does not conflict with file with
correct checksum downloaded later)?

Right now it just removes the file:
                        # Remove any incomplete fetch
                        m.clean(ud, self.d)

The problem with this is when upstream repacks some archive I would like
to be able to compare old tarball and new one.

My proposal is to add md5sum of downloaded file to ChecksumError and
rename it to <file>.<md5sum> in "if isinstance(e, ChecksumError):"

Does it make sense (should I send patch for this)?

FWIW: Emerge in gentoo does something similar.

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-15 13:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 13:30 Checksum failure encountered with download Martin Jansa
2013-04-11 21:40 ` [bitbake-devel] " Richard Purdie
2013-04-12 19:44 ` Trevor Woerner
2013-04-12 20:37   ` Martin Jansa
2013-04-15 13:41     ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox