kumquat-buildroot/support/download
Yann E. MORIN 0012b36c14 support/download: return different exit codes for different failures
Return different exit codes depending on the error that occured:

  0: no error (hash file missing, or all hashes match)
  1: unknown option
  2: hash file exists, but at least one hash in error
  3: hash file exists, but no hash for file to check
  4: hash file exists, but at least one hash type unknown

This will be used in a later patch to decide whether the downloaded file
should be kept or removed.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Samuel Martin <s.martin49@gmail.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-03 14:08:50 +02:00
..
bzr
check-hash support/download: return different exit codes for different failures 2015-04-03 14:08:50 +02:00
cp
cvs
dl-wrapper support/download: make hash file optional 2015-04-03 14:08:00 +02:00
git
hg
scp
svn support/download: support -q in all download backends 2015-01-04 18:38:36 +01:00
wget support/download: support -q in all download backends 2015-01-04 18:38:36 +01:00