Commit Graph

6 Commits

Author SHA1 Message Date
Alexey Gladkov 19dbaff8dd rpm2cpio.sh: refactoring to reduce extra dependencies
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>
2016-09-12 15:04:08 +02:00
Panu Matilainen c0e95f1ced Avoid locale issues in rpm2cpio.sh (RhBug:878363)
- 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...
2012-11-22 12:22:06 +02:00
Panu Matilainen 1220f6642a Fix rpm2cpio.sh error exit on unrecognized compression
- This is not a function so it needs to be exit, not return.
  Reported as a side-note in RhBug:803421.
2012-03-15 11:41:40 +02:00
Panu Matilainen c3f3696742 Teach rpm2cpio.sh about xz compression (RhBug:674348 & others) 2012-03-12 15:26:01 +02:00
Jindrich Novy edc5c0ef84 Recognize lzma payload from its magic
- old lzma formats without magic aren't supported
2008-04-22 12:41:08 +02:00
jbj 696c5d9d67 rollback changes from 4.0.4.
CVS patchset: 5297
CVS date: 2002/02/04 16:53:51
2002-02-04 16:53:51 +00:00