aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-10-03 03:10:35 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-10-03 03:10:35 +0000
commit9f0e2efedd491b2c85b26eaf555b669702d54f47 (patch)
tree43c4bdfedb52ab21669da60e8f5e50f20b5f1322
parentbfb8ba01d48a543135a4286a2187d503a58da2c8 (diff)
downloadbusybox-w32-9f0e2efedd491b2c85b26eaf555b669702d54f47.tar.gz
busybox-w32-9f0e2efedd491b2c85b26eaf555b669702d54f47.tar.bz2
busybox-w32-9f0e2efedd491b2c85b26eaf555b669702d54f47.zip
Extract control.tar.gz and data.tar.gz unconditionally, another one picked up by Stefan
git-svn-id: svn://busybox.net/trunk/busybox@3471 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--archival/dpkg.c5
-rw-r--r--dpkg.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index a3fd90c35..06d722c9d 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -2,6 +2,7 @@
2 * Mini dpkg implementation for busybox. 2 * Mini dpkg implementation for busybox.
3 * This is not meant as a replacemnt for dpkg 3 * This is not meant as a replacemnt for dpkg
4 * 4 *
5 * Written By Glenn McGrath with the help of others
5 * Copyright (C) 2001 by Glenn McGrath 6 * Copyright (C) 2001 by Glenn McGrath
6 * 7 *
7 * Started life as a busybox implementation of udpkg 8 * Started life as a busybox implementation of udpkg
@@ -1281,7 +1282,7 @@ void unpack_package(deb_file_t *deb_file)
1281 /* Extract control.tar.gz to /var/lib/dpkg/info/<package>.filename */ 1282 /* Extract control.tar.gz to /var/lib/dpkg/info/<package>.filename */
1282 info_prefix = (char *) xmalloc(sizeof(package_name) + 20 + 4 + 1); 1283 info_prefix = (char *) xmalloc(sizeof(package_name) + 20 + 4 + 1);
1283 sprintf(info_prefix, "/var/lib/dpkg/info/%s.", package_name); 1284 sprintf(info_prefix, "/var/lib/dpkg/info/%s.", package_name);
1284 deb_extract(deb_file->filename, stdout, (extract_quiet | extract_control_tar_gz | extract_all_to_fs), info_prefix, NULL); 1285 deb_extract(deb_file->filename, stdout, (extract_quiet | extract_control_tar_gz | extract_all_to_fs | extract_unconditional), info_prefix, NULL);
1285 1286
1286 /* Run the preinst prior to extracting */ 1287 /* Run the preinst prior to extracting */
1287 return_value = run_package_script(package_name, "preinst"); 1288 return_value = run_package_script(package_name, "preinst");
@@ -1294,7 +1295,7 @@ void unpack_package(deb_file_t *deb_file)
1294 } 1295 }
1295 1296
1296 /* Extract data.tar.gz to the root directory */ 1297 /* Extract data.tar.gz to the root directory */
1297 deb_extract(deb_file->filename, stdout, (extract_quiet | extract_data_tar_gz | extract_all_to_fs), "/", NULL); 1298 deb_extract(deb_file->filename, stdout, (extract_quiet | extract_data_tar_gz | extract_all_to_fs | extract_unconditional), "/", NULL);
1298 1299
1299 /* Create the list file */ 1300 /* Create the list file */
1300 strcat(info_prefix, "list"); 1301 strcat(info_prefix, "list");
diff --git a/dpkg.c b/dpkg.c
index a3fd90c35..06d722c9d 100644
--- a/dpkg.c
+++ b/dpkg.c
@@ -2,6 +2,7 @@
2 * Mini dpkg implementation for busybox. 2 * Mini dpkg implementation for busybox.
3 * This is not meant as a replacemnt for dpkg 3 * This is not meant as a replacemnt for dpkg
4 * 4 *
5 * Written By Glenn McGrath with the help of others
5 * Copyright (C) 2001 by Glenn McGrath 6 * Copyright (C) 2001 by Glenn McGrath
6 * 7 *
7 * Started life as a busybox implementation of udpkg 8 * Started life as a busybox implementation of udpkg
@@ -1281,7 +1282,7 @@ void unpack_package(deb_file_t *deb_file)
1281 /* Extract control.tar.gz to /var/lib/dpkg/info/<package>.filename */ 1282 /* Extract control.tar.gz to /var/lib/dpkg/info/<package>.filename */
1282 info_prefix = (char *) xmalloc(sizeof(package_name) + 20 + 4 + 1); 1283 info_prefix = (char *) xmalloc(sizeof(package_name) + 20 + 4 + 1);
1283 sprintf(info_prefix, "/var/lib/dpkg/info/%s.", package_name); 1284 sprintf(info_prefix, "/var/lib/dpkg/info/%s.", package_name);
1284 deb_extract(deb_file->filename, stdout, (extract_quiet | extract_control_tar_gz | extract_all_to_fs), info_prefix, NULL); 1285 deb_extract(deb_file->filename, stdout, (extract_quiet | extract_control_tar_gz | extract_all_to_fs | extract_unconditional), info_prefix, NULL);
1285 1286
1286 /* Run the preinst prior to extracting */ 1287 /* Run the preinst prior to extracting */
1287 return_value = run_package_script(package_name, "preinst"); 1288 return_value = run_package_script(package_name, "preinst");
@@ -1294,7 +1295,7 @@ void unpack_package(deb_file_t *deb_file)
1294 } 1295 }
1295 1296
1296 /* Extract data.tar.gz to the root directory */ 1297 /* Extract data.tar.gz to the root directory */
1297 deb_extract(deb_file->filename, stdout, (extract_quiet | extract_data_tar_gz | extract_all_to_fs), "/", NULL); 1298 deb_extract(deb_file->filename, stdout, (extract_quiet | extract_data_tar_gz | extract_all_to_fs | extract_unconditional), "/", NULL);
1298 1299
1299 /* Create the list file */ 1300 /* Create the list file */
1300 strcat(info_prefix, "list"); 1301 strcat(info_prefix, "list");