summaryrefslogtreecommitdiff
path: root/src/apk_io.h
AgeCommit message (Collapse)AuthorFilesLines
2013-06-12libapk, apk(8): fix header inclusion issues with musl's headersWilliam Pitcock1-0/+1
2012-02-23db: keep architecture in $ROOT/etc/apk/archTimo Teräs1-2/+5
This we use proper arch in case modifying chroot installation.
2012-02-22db, io: load repositories also from etc/apk/repositories.d/*.listTimo Teräs1-1/+1
Load additional repositories from $ROOT/etc/apk/repositories.d/*.list unless --repositories-file is given as parameter.
2012-02-22db, solver, io: scan cache items at startupTimo Teräs1-0/+3
It is faster to just scan the cache directory for existing packages at startup than trying to faccessat() them on demand. It also makes quite a few parts of the code more readable and simpler.
2011-09-13all: update copyright year statementTimo Teräs1-1/+1
2011-03-16db: relocate from /var/lib/apkTimo Teräs1-0/+1
move all files therein to other places. this allows /var to be mounted from harddisk, but rest of system be run from ramdisk. this also removes support for historical version of the scripts database which was obsoleted in 2.0_pre16 (in July 2009).
2010-12-09io: enhance istream/bstreams with pipe to forked childTimo Teräs1-2/+12
* prunes the child pid to avoid zombies * handles the errors so e.g. file-not-found is reported properly
2010-10-08io, db: id cache should be specific to database root, not system rootTimo Teräs1-5/+13
Otherwise we end up using wrong uid/gid mappings when doing install to alternate system root. Fixes #434.
2010-06-12archive: honor username/groupname instead of uid/gidTimo Teräs1-0/+6
Take the uid/gid from passwd and group.
2009-08-12io: better error handling when writing stuff outTimo Teras1-3/+3
also have the output stream support writing to temporary file and do renameat/unlinkat on close depending on if all writes succeeded or not.
2009-08-05io: flag for following symlinks on fstatTimo Teras1-1/+3
usually we are interested on the actual file's length. but audit is interested about the link. so add a flag for this and use it in audit.
2009-07-31apk: use *at instead of chdir+normal file syscallTimo Teras1-9/+10
this way we never change cwd, and relative filenames are always parsed consistently. this also helps filename construction in many places. this patch also changes '--root' to override location of all configuration to be in the new root. previously it depended on the file which one was used.
2009-07-22pkg: cleanup the signing codeTimo Teras1-0/+1
smaller callback and less cases to check. also reintroduce the oneshot digest flag, hopefully correct this time.
2009-07-22various: more informative error messagesTimo Teras1-2/+2
2009-07-17digest: use oneshot context flag where approriateTimo Teras1-4/+7
speeds up digest calculation on some cases.
2009-07-16various: new style index generationTimo Teras1-0/+1
change the index generation to do old index, or the new style index where package identity is sha1 of control block and it's contained within an .tar.gz to allow signing in future.
2009-07-16gzip: always autoclose the inner streamTimo Teras1-4/+3
2009-07-14db: live with sha1 and md5Timo Teras1-3/+4
this also convers scripts file to a tar archive.
2009-07-14bstream: make tokenizable and load index using bstreamTimo Teras1-1/+1
some fixes on index reading code too.
2009-07-13io: move csumming away from bstream to gunzipTimo Teras1-2/+15
in future we want to checksum on gzip boundary basis, not the full file.
2009-07-08csum: use openssl insteadTimo Teras1-0/+1
instead of having static md5 implemenation, use the openssl library for digest functions.
2009-06-29db: cache packages (ref #49)Timo Teras1-1/+2
If /etc/apk/cache is a symlink to directory, a copy of all installed packages is stored there, and the index of remote repositories will be there instead of /var/lib/apk. This enables to reconstruct running system during boot. Left as todo: remove cached copy when the package is removed, and additional apk applet to download missing packages to cache and/or remove extra items.
2009-04-16db: cache index files, 'update' appletTimo Teras1-0/+2
Cache non-local index files always locally. Introduce 'update' applet to force refresh of cached index files. Fixes #19.
2009-04-16pkg: clean up writing of dependenciesTimo Teras1-0/+1
2009-04-15fetch: new applet to download .apk filesTimo Teras1-0/+2
Fixes #24.
2009-01-15db: index file location is a URLTimo Teras1-0/+1
2009-01-07various: make fancy progress bar and update todoTimo Teras1-1/+2
2009-01-06io: fix some memory leaksTimo Teras1-1/+1
2008-11-28io: apk_ostream stuffTimo Teras1-3/+12
2008-11-28io: prepartions for url handlingTimo Teras1-0/+3
2008-11-27db: compressed index fileTimo Teras1-0/+4
2008-11-27various: use apk_istream apiTimo Teras1-0/+1
2008-11-14db: checksum installed files, protect config filesTimo Teras1-2/+15
Checksum of installed is computed on the fly when extracting them and it'll be saved to fdb. When installing config files those are diverted with suffix .apk-new if earlier version of same file with local changes exist.
2008-11-07use zlib internally to decompressTimo Teras1-0/+38