[BusyBox] Patch to dpkg
Bruce Edge
bedge at troikanetworks.com
Wed Nov 3 19:38:49 UTC 2004
Kim B. Heino wrote:
>Hello,
>
>Attached patch is needed to fix dpkg's support for preinst, postinst etc
>script files.
>
>First part is needed to correctly unpack control-file. Second part
>caused dpkg to go forever-loop when failing, trying to unpack same
>deb-file again and again.
>
>
>
>
>------------------------------------------------------------------------
>
>*** busybox-1.00.orig/archival/dpkg.c 2004-04-14 20:51:08.000000000 +0300
>--- busybox-1.00/archival/dpkg.c 2004-11-03 12:25:24.118623875 +0200
>***************
>*** 1520,1525 ****
>--- 1520,1526 ----
> {
> ar_handle->sub_archive->action_data = data_extract_to_buffer;
> ar_handle->sub_archive->accept = myaccept;
>+ ar_handle->sub_archive->filter = filter_accept_list;
>
> unpack_ar_archive(ar_handle);
> close(ar_handle->src_fd);
>***************
>*** 1714,1719 ****
>--- 1715,1721 ----
>
> if (package_num == -1) {
> bb_error_msg("Invalid control file in %s", argv[optind]);
>+ optind++;
> continue;
> }
> deb_file[deb_count]->package = (unsigned int) package_num;
>
>
>------------------------------------------------------------------------
>
>
>
I thought I read on this list that dpkg support was slated for removal
in busybox?
Personally I hope it's not, and I'm really glad to see this patch.
-Bruce
More information about the busybox
mailing list