aboutsummaryrefslogtreecommitdiff
path: root/dpkg.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Use the unofficial -C instead of -c to --configure a package, -c conflicts ↵bug12001-07-181-2/+2
| | | | | | with another dpkg command git-svn-id: svn://busybox.net/trunk/busybox@3120 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More feedback to userbug12001-07-181-1/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3118 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be more verbose when configureing package, minor changesbug12001-07-181-9/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3117 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use xfopen to abort on error to prevent segfaulting later.bug12001-07-181-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3115 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tolerate fields with no data, e.g. "Depends: "bug12001-07-141-0/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3096 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Total rewrite, uses hash tables for speed and low memory use.bug12001-07-131-679/+1248
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3094 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Unpack the filename not the package namebug12001-07-111-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3059 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Minor update to include file orderingandersen2001-07-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3033 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up some warnings that show up on ppcandersen2001-06-251-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2898 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrote mkdir (and touched lots of things in the process).kraai2001-06-211-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2873 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reorganise archive extraction codebug12001-06-131-12/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2823 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up some signed char vs int issues that show up on powerpc.andersen2001-05-241-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2719 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove unused function. If necessary, we can use remove_file instead.kraai2001-05-171-31/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2666 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another nice cleanup from Larry. This adds a new last_char_is() function andandersen2001-04-261-1/+1
| | | | | | | | | uses it to avoid possible buffer underruns whn strlen is zero, and avoid the possible space-hogging inline of strlen() in several cases. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2450 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Write full status filebug12001-04-161-19/+76
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2351 69ca8d6d-28ef-0310-b511-8ec308f3f277
* dpkg improvements, use full package struct, avoid extracting to tmp dir, ↵bug12001-04-161-196/+175
| | | | | | | | | rename variable. deb_extract, untar and dpkg_deb modified to make the above possible git-svn-id: svn://busybox.net/trunk/busybox@2350 69ca8d6d-28ef-0310-b511-8ec308f3f277
* copy_file_chunk uses streams now.bug12001-04-111-17/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2315 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move deb_extract() to libbb, dpkg now independent of dpkg-debbug12001-04-111-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2306 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply Vladimir's latest cleanup patch.andersen2001-04-091-10/+10
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2288 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reorganise status field to use 3 chars instead of one bit shifted long int.bug12001-04-081-131/+98
| | | | | | | Generates status file properly now, not compatable with full dpkg yet. git-svn-id: svn://busybox.net/trunk/busybox@2281 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use create_path instead of mkdirbug12001-04-081-4/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2280 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It now correctly backs up the (still corrupt) status filebug12001-04-081-10/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2279 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some fixes, but still broken... (cont)bug12001-04-081-136/+162
| | | | | | | | | | | | Make better use of some libbb functions New remove dir code to avoid depending on the rm applet dont use copy_file() it doesnt fail elegantly Use getopt. Generate correct /var/lib/dpkg/info/ files Status file is broken, working on it now git-svn-id: svn://busybox.net/trunk/busybox@2278 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It seems all the stdout munging was useless anyways, sinceandersen2001-04-051-3/+0
| | | | | | | | | deb_extract and all its called functions do nothing with stdout anyways. Axe that stuff. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2257 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a fewandersen2001-04-051-10/+3
| | | | | | | | | shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2250 69ca8d6d-28ef-0310-b511-8ec308f3f277
* If only BB_DPKG was enabled in Config.h, busybox would not build; it'd say:markw2001-03-151-1/+1
| | | | | | | | | | | | dpkg.c:18: #error It looks like you are using libc5, which does not support dpkg.c:19: #error tfind(). tfind() is used by busybox dpkg. dpkg.c:20: #error Please disable BB_DPKG. Sorry. This was fixed by changing the || to an && in the preprocessor. (We've changed the logic in there too many times.) Found using multibuild.pl. git-svn-id: svn://busybox.net/trunk/busybox@2085 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix from Manuel for a silly thinko on my part.andersen2001-03-141-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2073 69ca8d6d-28ef-0310-b511-8ec308f3f277
* dpkg used tfind, which doesn't work with libc5. Print a friendy errorandersen2001-03-141-0/+9
| | | | | | | | should someone try to use it... -Erik git-svn-id: svn://busybox.net/trunk/busybox@2067 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A cleanup patch from Jeff Garzik to static-ify a number ofandersen2001-03-091-3/+3
| | | | | | | namespace polluting things that really should be static. git-svn-id: svn://busybox.net/trunk/busybox@2027 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix a few mallocs to be xmallocs.andersen2001-02-151-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1826 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-02-141-2/+2
| | | | | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Closer integration with dpkg-deb and other busybox functions.bug12001-02-121-129/+140
| | | | | | | Hopefully simplified some code (works for me). git-svn-id: svn://busybox.net/trunk/busybox@1796 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More style changesbug12001-02-111-150/+175
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1790 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Style changes; use get_line_from_file from utilitiesbug12001-02-111-173/+132
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1789 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use copy_file from utilty.c, remove some char definesbug12001-02-101-41/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1787 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bug fix, rename status file, cleanupsbug12001-02-101-71/+51
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1786 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Replace status defines with const int to conform to sytle guide, adds 32 bytesbug12001-02-101-61/+58
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1785 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Initial importbug12001-02-101-0/+905
git-svn-id: svn://busybox.net/trunk/busybox@1784 69ca8d6d-28ef-0310-b511-8ec308f3f277