[BusyBox] very rough apt-get patch
Glenn McGrath
bug1 at optushome.com.au
Sun Nov 4 07:59:11 UTC 2001
Ive got a very rough apt-get working, its broken in lots of simple ways,
in ways ive gone backwards with this patch compared to previous patches,
however its the first patch that can actually download and install a
deb, and the many common functions to dpkg and apt-get are now located
in libunarchive. So now it will be easy to work on both at once.
apt-get update nearly works, it can download the Packages.gz files, in
an apt-compatable way.
I will probably not bother creating an available file, instead of
extracting them and merging them to the /var/lib/dpkg/available file i
can just uncompress and parse the various Packages.gz files (and/or an
available file if it exists) directly into the package structs.
It only uses the system command to call the wget shell command to
actually do the download.
Ive disabled its modification of the real status file, i need to change
where it extracts the control file of installed packages.
Im still not happy with dependency checking, it doesnt handle virtual
packages, im going to end up redoing it... but we can get by with it for
a while.
I am pretty happy with the hashtables and general memory usage.
Much work still to do, but im expecting Civilisation III to be delivered
tommorow, so i may be um... distracted for a few days.
The patch located at
http://people.debian.org/~bug1/busybox/apt_get_dpkg.20011105.diff.gz
Glenn
More information about the busybox
mailing list