Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fixes to create_sparse_header().
1) descriptorOffset is never set by callers, so just hard-code it to 1 in the create_sparse_header method. 2) inFileSectors and descriptorSize are both required for create_sparse_header to operate properly. If a caller forgot one of them, None would be used and then the struct.pack at the end would fail anyway. Just make them required arguments. Signed-off-by: Chris Lalancette <clalance@redhat.com>
- Loading branch information