aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-07-11 03:30:11 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-07-11 03:30:11 +0000
commit6c0b7fe7c96a8ac3bf11220f3e8d605e4ac399e2 (patch)
tree7906db1eb510d6fcb890ca01927fb25716d1497f
parent0e4623b3928d07f91a5a4b68855544d7eefb47f6 (diff)
downloadbusybox-w32-6c0b7fe7c96a8ac3bf11220f3e8d605e4ac399e2.tar.gz
busybox-w32-6c0b7fe7c96a8ac3bf11220f3e8d605e4ac399e2.tar.bz2
busybox-w32-6c0b7fe7c96a8ac3bf11220f3e8d605e4ac399e2.zip
Unpack the filename not the package name
git-svn-id: svn://busybox.net/trunk/busybox@3059 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--archival/dpkg.c4
-rw-r--r--dpkg.c4
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;
diff --git a/dpkg.c b/dpkg.c
index 203b64d98..020a68a90 100644
--- a/dpkg.c
+++ b/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;