From: Glenn L McGrath Date: Wed, 11 Jul 2001 03:30:11 +0000 (-0000) Subject: Unpack the filename not the package name X-Git-Tag: 0_60_0~86 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=59e50f634a81a49d4d53e9b683d41af3b869706a;p=oweals%2Fbusybox.git Unpack the filename not the package name --- 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) /* extract the control files */ info_prefix = (char *) malloc(strlen(pkg->package) + strlen(infodir) + 2 + 5 + 1); sprintf(info_prefix, "%s/%s.", infodir, pkg->package); - deb_extract(pkg->package, stdout, (extract_control_tar_gz | extract_all_to_fs), info_prefix, NULL); + deb_extract(pkg->filename, stdout, (extract_control_tar_gz | extract_all_to_fs), info_prefix, NULL); /* Create the list file */ strcat(info_prefix, "list"); out_stream = wfopen(info_prefix, "w"); - deb_extract(pkg->package, out_stream, (extract_data_tar_gz | extract_list), NULL, NULL); + deb_extract(pkg->filename, out_stream, (extract_data_tar_gz | extract_list), NULL, NULL); fclose(out_stream); 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) /* extract the control files */ info_prefix = (char *) malloc(strlen(pkg->package) + strlen(infodir) + 2 + 5 + 1); sprintf(info_prefix, "%s/%s.", infodir, pkg->package); - deb_extract(pkg->package, stdout, (extract_control_tar_gz | extract_all_to_fs), info_prefix, NULL); + deb_extract(pkg->filename, stdout, (extract_control_tar_gz | extract_all_to_fs), info_prefix, NULL); /* Create the list file */ strcat(info_prefix, "list"); out_stream = wfopen(info_prefix, "w"); - deb_extract(pkg->package, out_stream, (extract_data_tar_gz | extract_list), NULL, NULL); + deb_extract(pkg->filename, out_stream, (extract_data_tar_gz | extract_list), NULL, NULL); fclose(out_stream); pkg->state_want = state_want_install;