Fix error handling in payload copying
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 18 May 2011 12:53:54 +0000 (15:53 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 18 May 2011 13:01:47 +0000 (16:01 +0300)
commit63ee1e735aac4b8cc6e5c1e80c616215cd241bf3
tree8f2a564c24d2232c8c006d7c8576d2f35bcd077f
parentab3337e4f6a3e0f1c5587890520d0e5bb4ad9569
Fix error handling in payload copying
- Lift the payload copy into a separate helper function to clean
  things up a bit
- The code to handle read errors was unreachable before this,
  causing any read error (rare as they might be) to be silently
  ignored and package generation considered successful.
- This could/should perhaps use ufdCopy() instead but that ha
  its own set of problems (not clean wrt large files, error reporting...)
build/pack.c