Since the temporary cvs is still down I post what I have so far here.

http://home.tiscali.no/natanael/software/busybox/tbz2pkg.c
http://home.tiscali.no/natanael/software/busybox/tbz2pkg.h

It still not caluclates the file hashes, just compares the date and size
of the files.

BusyBox v1.00 (2005.03.09-15:47+0000) multi-call binary

Usage: tbz2pkg [OPTIONS] ... [FILE]

Install binary gentoo tbz2 package
When FILE is '-' or unspecified, reads standard input.
Options:
        -d|--debug            : Debug info
        -h|--help             : This help
        -i|--install          : Install a package
        -M|--install-mask     : define INSTALL_MASK=
        -L|--list             : List installed files for pacakge
        -p|--pretend          : Pretend
        -P|--purge            : Purge package
        -R|--root=<dir>       : define ROOT=
        -v|--verbose          : set verbose flag

Those things are supposed to work.

The idea is that emerge.c and tbz2pkg.c share the configureables
structure for config. tbz2pkg is then called with:

tbz2pkg_init(&conf);
tbz2_install_file(downloaded_tbz2);

I have been doing this when have some time over here and there so excuse
me if the code is not very clear.

--
Natanael Copa





--
[email protected] mailing list

Reply via email to