diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-11-13 03:24:20 +0300 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-11-13 03:24:20 +0300 |
commit | e356883ffb0c7300aa0312864ddf203a6d322d94 (patch) | |
tree | e5ef4635958a251b3a751437841471ba85c44665 /archival/dpkg_deb.c | |
parent | 034c371bb2ea7d66caf3ac29178ce941837edb9f (diff) |
Minor cleanups
Diffstat (limited to 'archival/dpkg_deb.c')
-rw-r--r-- | archival/dpkg_deb.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c index c46739553..7ce637e5e 100644 --- a/archival/dpkg_deb.c +++ b/archival/dpkg_deb.c @@ -29,13 +29,6 @@ extern int dpkg_deb_main(int argc, char **argv) #ifndef CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY const llist_t *control_tar_llist = NULL; #endif -#ifndef CONFIG_AR - char magic[7]; -#endif - - /* a .deb file is an ar archive that contain three files, - * data.tar.gz, control.tar.gz and debian - */ /* Setup the tar archive handle */ tar_archive = init_handle(); @@ -104,17 +97,7 @@ extern int dpkg_deb_main(int argc, char **argv) mkdir(argv[optind], 0777); chdir(argv[optind]); -#ifdef CONFIG_AR unpack_ar_archive(ar_archive); -#else - xread_all(ar_archive->src_fd, magic, 7); - if (strncmp(magic, "!<arch>", 7) != 0) { - error_msg_and_die("Invalid ar magic"); - } - ar_archive->offset += 7; - - while (get_header_ar(ar_archive) == EXIT_SUCCESS); -#endif /* Cleanup */ close (ar_archive->src_fd); |