All of lore.kernel.org
 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
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ 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] 10+ messages in thread

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

Thread overview: 10+ 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 ` Richard Purdie
2013-04-11 21:40   ` [bitbake-devel] " Richard Purdie
2013-04-12 14:08 ` [PATCH] fetch2: rename file with bad checksum instead of removing it completely Martin Jansa
2013-04-12 19:44 ` Checksum failure encountered with download Trevor Woerner
2013-04-12 19:44   ` [bitbake-devel] " Trevor Woerner
2013-04-12 20:37   ` Martin Jansa
2013-04-12 20:37     ` [bitbake-devel] " Martin Jansa
2013-04-15 13:41     ` Richard Purdie
2013-04-15 13:41       ` [bitbake-devel] " Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.