rpm2cpio.sh was refactored to minimize the use of external tools.
* after refactoring the utility requires to work: dd, printf, and unarchivers;
* add check that file passed as argument is a rpm-file;
* fix signatures of compressed data.
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
- In gawk >= 4.0.x printf() "adjusts" things according to current locale,
but we need the data as it is. Forcing C locale prevents gawk from
getting funny ideas about character conversions...