diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-07-11 03:30:11 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-07-11 03:30:11 +0000 |
commit | 59e50f634a81a49d4d53e9b683d41af3b869706a (patch) | |
tree | 7906db1eb510d6fcb890ca01927fb25716d1497f | |
parent | 8c145dc31be854e74de12dbbd8e36f9a011d8e10 (diff) | |
download | busybox-w32-59e50f634a81a49d4d53e9b683d41af3b869706a.tar.gz busybox-w32-59e50f634a81a49d4d53e9b683d41af3b869706a.tar.bz2 busybox-w32-59e50f634a81a49d4d53e9b683d41af3b869706a.zip |
Unpack the filename not the package name
-rw-r--r-- | archival/dpkg.c | 4 | ||||
-rw-r--r-- | dpkg.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index 203b64d98..020a68a90 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
@@ -662,12 +662,12 @@ static int dpkg_dounpack(package_t *pkg) | |||
662 | /* extract the control files */ | 662 | /* extract the control files */ |
663 | info_prefix = (char *) malloc(strlen(pkg->package) + strlen(infodir) + 2 + 5 + 1); | 663 | info_prefix = (char *) malloc(strlen(pkg->package) + strlen(infodir) + 2 + 5 + 1); |
664 | sprintf(info_prefix, "%s/%s.", infodir, pkg->package); | 664 | sprintf(info_prefix, "%s/%s.", infodir, pkg->package); |
665 | deb_extract(pkg->package, stdout, (extract_control_tar_gz | extract_all_to_fs), info_prefix, NULL); | 665 | deb_extract(pkg->filename, stdout, (extract_control_tar_gz | extract_all_to_fs), info_prefix, NULL); |
666 | 666 | ||
667 | /* Create the list file */ | 667 | /* Create the list file */ |
668 | strcat(info_prefix, "list"); | 668 | strcat(info_prefix, "list"); |
669 | out_stream = wfopen(info_prefix, "w"); | 669 | out_stream = wfopen(info_prefix, "w"); |
670 | deb_extract(pkg->package, out_stream, (extract_data_tar_gz | extract_list), NULL, NULL); | 670 | deb_extract(pkg->filename, out_stream, (extract_data_tar_gz | extract_list), NULL, NULL); |
671 | fclose(out_stream); | 671 | fclose(out_stream); |
672 | 672 | ||
673 | pkg->state_want = state_want_install; | 673 | pkg->state_want = state_want_install; |
@@ -662,12 +662,12 @@ static int dpkg_dounpack(package_t *pkg) | |||
662 | /* extract the control files */ | 662 | /* extract the control files */ |
663 | info_prefix = (char *) malloc(strlen(pkg->package) + strlen(infodir) + 2 + 5 + 1); | 663 | info_prefix = (char *) malloc(strlen(pkg->package) + strlen(infodir) + 2 + 5 + 1); |
664 | sprintf(info_prefix, "%s/%s.", infodir, pkg->package); | 664 | sprintf(info_prefix, "%s/%s.", infodir, pkg->package); |
665 | deb_extract(pkg->package, stdout, (extract_control_tar_gz | extract_all_to_fs), info_prefix, NULL); | 665 | deb_extract(pkg->filename, stdout, (extract_control_tar_gz | extract_all_to_fs), info_prefix, NULL); |
666 | 666 | ||
667 | /* Create the list file */ | 667 | /* Create the list file */ |
668 | strcat(info_prefix, "list"); | 668 | strcat(info_prefix, "list"); |
669 | out_stream = wfopen(info_prefix, "w"); | 669 | out_stream = wfopen(info_prefix, "w"); |
670 | deb_extract(pkg->package, out_stream, (extract_data_tar_gz | extract_list), NULL, NULL); | 670 | deb_extract(pkg->filename, out_stream, (extract_data_tar_gz | extract_list), NULL, NULL); |
671 | fclose(out_stream); | 671 | fclose(out_stream); |
672 | 672 | ||
673 | pkg->state_want = state_want_install; | 673 | pkg->state_want = state_want_install; |