Age | Commit message (Collapse) | Author | Files | Lines |
|
this makes the database package entry smaller, and we propbably
get more fields to installed_package later too. this cleans up
the way scripts are stored and is a preparation for supporting
triggers. some parsing for trigger meta-data. ref #45.
|
|
also have the output stream support writing to temporary file
and do renameat/unlinkat on close depending on if all writes
succeeded or not.
|
|
and take checksums for symlinks too.
|
|
|
|
otherwise, non repository files present in cache are not
considered for installation (e.g. when booting from cdrom).
|
|
|
|
|
|
fixes #127
|
|
some hooks to package verification code were missing causing the
verification to not be done (causing pre-script to be not run).
fixes #124, #126.
|
|
so do not skip it even if it's no longer available.
|
|
otherwise old world deps are used and unintended results will
happen.
|
|
|
|
instead enforce world dependencies when the package name
is first referenced upon.
|
|
this helps boots sequence when network is not available.
|
|
|
|
|
|
so user can override trusted keys directory and repositories file.
|
|
it's a warning not an error to have non-existant repository.
bad signature means tampering; but we might want to just ignore
those. this is especially important if we have http repositories
and we are bootstrapping (without network).
|
|
they are not needed, and cause errors if signing keys are not
present.
|
|
|
|
over the ones in config file. also remove the apk_root == NULL
check as this cannot happen anymore. a valid root is always
required.
|
|
|
|
|
|
|
|
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.
|
|
|
|
so do not choke on it.
|
|
so initialize db with a root, but avoid loading state or
repositories.
|
|
it will allow to overwrite files owned by some other packages
to get upgrades right (e.g. when splitting or renaming packages)
|
|
also makes it possibly to upgrade package without adding it to
top-level deps. fixes #69.
|
|
previously they might have been skipped on certain situations.
this also fixes some other reverse dependency enforcements and
implements new "pending" state for locked name.
|
|
otherwise we can accept unsigned repositories, and install bad
packages.
|
|
and by default just update the world, and dump a lost of packages
that are not removed. fixes #47.
|
|
We need the define for uint16
|
|
should really fix abuild-tar.
|
|
make the system audit compare only installed files, instead of
scanning the whole file system. also make it print only package
names with -q, so reinstalling modified packages becomes easy.
|
|
other wise cache_fd points to var/lib/apk and contains the real
installed db causing it to be loaded twice.
|
|
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.
|
|
remember to increment destination pointer; and munmap the proper
base address.
|
|
|
|
|
|
also take precautions in audit code if the db is missing the
checksum.
|
|
and use it for /etc/init.d by default. fixes #99.
|
|
so we avoid some malloc/free calls.
|
|
apparently it needs to have both PROT_READ and PROT_WRITE. and
it needs to be MAP_SHARED for the writing to be effective. oh,
and the data needs to be preallocated with ftruncate; otherwise,
one gets SIGBUS.
|
|
we don't want to do checksumming of existing files unless it's
in a protected directory. also, we keep the original file if it's
*modified*.
|
|
avoids some copying and system calls.
|
|
and force checksumming only when unpacking archive. otherwise
it's extra computation for nothing.
|
|
apparently the double colon rule dependencies affect only the
specific rule-set.
|
|
otherwise bad things happens. avoid this be checking end of
stream at the beginning of read.
|