Make rpm2cpio exit code accurate for large packages and partial copy
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 14 Mar 2012 08:09:35 +0000 (10:09 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 14 Mar 2012 09:20:42 +0000 (11:20 +0200)
commit1e318f557c0f8b8296f0263afa3a444b9b9d7f22
tree1c51300e6801e8dc05c348fc42e303d4d212e83d
parentaa90bda89b15389f59fdf4c836892561f24a6479
Make rpm2cpio exit code accurate for large packages and partial copy

- Grab the uncompressed payload size from header and compare number
  of bytes copied to that for exit code. Previously, truncated
  payloads could have returned with success. This also fixes the
  exit code for large payloads (RhBug:790396)
rpm2cpio.c