aboutsummaryrefslogtreecommitdiff
path: root/archival/dpkg.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - ls: remove unused variablealdot2006-05-291-3/+1
| | | | | | | | | | | - dpkg.c, diff: use xstat text data bss dec hex filename 848823 9100 645216 1503139 16efa3 busybox_old 848679 9100 645216 1502995 16ef13 busybox_unstripped bloatcheck is completely useless as it sees -79 for this, which is bogus. git-svn-id: svn://busybox.net/trunk/busybox@15218 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More size shrinkage.landley2006-05-291-119/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15217 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change llist_add_* to take the address of the list rather than returning the newlandley2006-05-261-6/+6
| | | | | | | head, and change all the callers. git-svn-id: svn://busybox.net/trunk/busybox@15199 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many byteslandley2006-05-071-1/+1
| | | | | | | | as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code. git-svn-id: svn://busybox.net/trunk/busybox@15023 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)landley2006-03-011-2/+1
| | | | | | | from before "if(x) free(x)". git-svn-id: svn://busybox.net/trunk/busybox@14396 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Denis Vlasenko to constify things and fix a few typos.landley2006-02-221-2/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14210 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-11/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bernhard Fischer says: use xmalloc() instead of malloc()vapier2005-08-161-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11168 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying fix for:pgf2005-07-221-0/+2
| | | | | | | | | | 0000093: Patch for dpkg - can't handle scripts Attached patch is needed to fix dpkg's support for preinst, postinst etc script files. git-svn-id: svn://busybox.net/trunk/busybox@10900 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bernhard Fischer to make a bunch of symbols staticandersen2005-04-161-32/+32
| | | | | | | which were otherwise cluttering the global namespace. git-svn-id: svn://busybox.net/trunk/busybox@10121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* In Bug 208, bernhardf writes:vapier2005-04-161-1/+1
| | | | | | | | | On machines with only ANSI compliant compilers, not explitily delcaring an empty parameter list 'void' causes failure. git-svn-id: svn://busybox.net/trunk/busybox@10113 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Larry Doolittle writes:andersen2004-04-141-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry git-svn-id: svn://busybox.net/trunk/busybox@8759 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-42/+42
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Ian Campbell, fix or'ed dependencies and handle virtualbug12003-11-281-79/+237
| | | | | | | dependencies. git-svn-id: svn://busybox.net/trunk/busybox@8009 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Important bugfixes from Ian Campbell.bug12003-11-261-26/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | init_archive_deb_data() We want to filter for data.tar.* in the AR file not the TAR file, else we get nothing. all_control_list() Make the 'extensions' array of control file names a global so it can be used in unpack_package as well. Name the global all_control_files. Don't hard code the length of all_control_files but instead used sizeof. unpack_package() Only unpack the control files we are interested in (from all_control_files). Extract the data.tar.gz into / rather than the current directory. dpkg_main() Configure packages in a second pass so all the packages being installed are unpacked before configuring. Some purely cosmetic changes: header update list of differences since two of them are no longer true. The .control file is no longer stored as a result of this patch -- it was redundant since the info is in status. New packages appear to be added to the end of the status file now rather than the start. remove_package() Make message printing optional, so we can avoid a redundant message when replacing/upgrading a package. When we do print stuff then include the version number. purge_package() Print "Purging xxx (yyy) ..." message like the other actions. configure_package() Add "..." to "Setting up" message to be consistent with other actions. git-svn-id: svn://busybox.net/trunk/busybox@8004 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Do not shadow the global name 'accept'andersen2003-09-151-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7522 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-46/+45
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use libbb/get_line_from_file instead of getlinebug12002-12-111-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6156 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move add_to_list from libunarchive to libbb so it can be of more general use ↵bug12002-12-081-7/+7
| | | | | | (eg ifupdown). Changed the name to llist_add_to as i plan on adding more llist_ functions as needed (e.g. llist_free). git-svn-id: svn://busybox.net/trunk/busybox@6132 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move compare_string_array to libbbbug12002-12-021-13/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6073 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change if(x)free(x); to free(x);aaronl2002-11-281-21/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6055 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use a switch instead of successive if (strcmp()) statments.bug12002-11-061-31/+50
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5833 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Split deb_extract() into more generic functionsbug12002-11-061-43/+76
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5832 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support for bziped debs, i.e. use .tar.bz2 instead .tar.gz internallybug12002-11-051-16/+34
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5815 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move data_extract_all_prefix to dpkg, its only used there.bug12002-11-031-1/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5783 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update dpkg to use new unarchive codebug12002-10-191-6/+44
| | | | git-svn-id: svn://busybox.net/trunk/busybox@5677 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Randolfe Averty to fixup package conflict checks, cleanup some ↵bug12002-05-291-74/+124
| | | | | | | | | memory leaks and reorganise dependency checking. Some further memory leaks fixed by me. git-svn-id: svn://busybox.net/trunk/busybox@4817 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * archival/dpkg.c (create_list): Use chomp.kraai2002-01-021-5/+1
| | | | | | | * archival/tar.c (append_file_list_to_list): Likewise. git-svn-id: svn://busybox.net/trunk/busybox@3993 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.kraai2001-12-201-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3925 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix some fegfaults and picket fencebug12001-12-051-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3826 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fail gracefully if package depends on a virtual package.bug12001-12-051-2/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3823 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix opt type in dpkg (closes: #118975).kraai2001-11-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3721 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix create list segfaultbug12001-11-031-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3627 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Recovering from my previous commitbug12001-10-251-189/+1365
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3583 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Modify applets to use libunarchivebug12001-10-251-1364/+189
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3582 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Abort if scripts return value != 0bug12001-10-231-10/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3554 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Process extra empty lines correctly.kraai2001-10-181-1/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3544 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove xmalloc calls.kraai2001-10-181-30/+29
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3543 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another part of Stafan's latest patch, when replacing a pre-existing package ↵bug12001-10-061-0/+2
| | | | | | set its status correctly. git-svn-id: svn://busybox.net/trunk/busybox@3499 69ca8d6d-28ef-0310-b511-8ec308f3f277
* status_package_num should refer to package not status.bug12001-10-061-2/+3
| | | | | | | Only initialise a new entry in the status hashtable if it really is a new entry. git-svn-id: svn://busybox.net/trunk/busybox@3498 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixes with help from Stefan, Typo in prerm script, and when reinstall a ↵bug12001-10-041-4/+8
| | | | | | package the old packages status was getting overwritten. git-svn-id: svn://busybox.net/trunk/busybox@3483 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract control.tar.gz and data.tar.gz unconditionally, another one picked ↵bug12001-10-031-2/+3
| | | | | | up by Stefan git-svn-id: svn://busybox.net/trunk/busybox@3471 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix return status, picked up by Stefanbug12001-09-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3453 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The <package>.list file was prepending "./" to the files, fixed that.bug12001-09-221-5/+6
| | | | | | | Also fixed a very silly error by me when running postinst (remember to use the variable BEFORE its freed) git-svn-id: svn://busybox.net/trunk/busybox@3431 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Dont free everytime getline() is used, fix from Stefan Soucekbug12001-09-221-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3430 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix to make preinst run when required, from Stefan Soucekbug12001-09-211-1/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3422 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Implement dpkg -l option, from Stefan Soucek (slightly modified)bug12001-09-211-4/+53
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3421 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix version comparision bugbug12001-08-151-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3292 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup (most) memory leaksbug12001-07-191-32/+57
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3124 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change read_package_field interface, and rewrite using low level functionsbug12001-07-181-73/+54
| | | | | | | Fixes for a few bugs that have crept into dpkg in the last few days git-svn-id: svn://busybox.net/trunk/busybox@3122 69ca8d6d-28ef-0310-b511-8ec308f3f277