aboutsummaryrefslogtreecommitdiff
path: root/archival/rpm2cpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/rpm2cpio.c')
-rw-r--r--archival/rpm2cpio.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c
index 3e4a6a249..a6db19c13 100644
--- a/archival/rpm2cpio.c
+++ b/archival/rpm2cpio.c
@@ -75,11 +75,14 @@ int rpm2cpio_main(int argc UNUSED_PARAM, char **argv)
75 /* Skip the main header */ 75 /* Skip the main header */
76 skip_header(); 76 skip_header();
77 77
78 //if (SEAMLESS_COMPRESSION) 78 //if (SEAMLESS_COMPRESSION) - we do this at the end instead.
79 // /* We need to know whether child (gzip/bzip/etc) exits abnormally */ 79 // /* We need to know whether child (gzip/bzip/etc) exits abnormally */
80 // signal(SIGCHLD, check_errors_in_children); 80 // signal(SIGCHLD, check_errors_in_children);
81 81
82 /* This works, but doesn't report uncompress errors (they happen in child) */ 82//TODO: look for rpm tag RPMTAG_PAYLOADCOMPRESSOR (dec 1125, hex 0x465),
83// if the value is "lzma", set up decompressor without detection
84// (lzma can't be detected).
85
83 setup_unzip_on_fd(rpm_fd, /*fail_if_not_compressed:*/ 1); 86 setup_unzip_on_fd(rpm_fd, /*fail_if_not_compressed:*/ 1);
84 if (bb_copyfd_eof(rpm_fd, STDOUT_FILENO) < 0) 87 if (bb_copyfd_eof(rpm_fd, STDOUT_FILENO) < 0)
85 bb_error_msg_and_die("error unpacking"); 88 bb_error_msg_and_die("error unpacking");