Age | Commit message (Collapse) | Author | Files | Lines |
|
speeds up digest calculation on some cases.
|
|
|
|
|
|
that got broke during verify implementation.
|
|
an utility to check package signature and integrity.
|
|
in future we might add datahashalg to specify the algorithm used.
|
|
to speed up apk installation avoid calculating checksums.
|
|
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.
|
|
|
|
|
|
replace the old 'delete' option, with 'index'. the idea is that
one can provide existing index files to take cached meta-data of
the package from (assumes package has not been modified if index is
newer, and package size has not changed).
this way one always gives the list of .apk files to include in
the new index, and the old index is used only as "cache".
|
|
|
|
and prefer sha1 checksums to be stored in base64 encoded format.
|
|
otherwise we don't get chechksum anymore after the changes to
support partial gzip checksumming.
|
|
this also convers scripts file to a tar archive.
|
|
was left there unintentionally while debugging stuff.
|
|
|
|
snprintf is dog slow. make the blob stuff have some helper functions
so we can use them in code paths that are executed often.
|
|
avoid recalculating hashes, and store the lengths of names, so
we can optimize some operations.
|
|
also make the array code more explicit to have gcc optimizer happy.
|
|
|
|
some fixes on index reading code too.
|
|
in future we want to checksum on gzip boundary basis, not the
full file.
|
|
to actually get hardware acceleration if available.
|
|
allow .apk to consist of multiple separate gzip streams which
are just concatenated together.
|
|
We use APK_UPDATE_CACHE apk_flag instead.
|
|
Support for limiting output for only showing the packages who have
the status we are interested in. For example --limit '<' will only
list packages that have a newer version available.
While here, we also fix so packages that are not in any repository
are displayed with '?'.
|
|
This will update the repository cache upon db_open.
|
|
we need to know if caching is enabled, before the repositories are
added. otherwise the cache is not used properly at db opening time.
|
|
add all ciphers and built-in engines so we get e.g. hw acceleration
of sha1 when available.
|
|
use pkgconfig of zlib instead of hard requiring it. and link in
the pkg-config libs with --as-needed as not all of the openssl
libs are really required.
|
|
instead of having static md5 implemenation, use the openssl
library for digest functions.
|
|
|
|
and use this option in initramfs, so we are likely to get an usable
environment even if some packages from world are missing. fixes #50.
|
|
|
|
check for the full filename to match an expected pattern or
delete it (so we delete files with .new, .new.backup, etc.).
final part of remote package caching: fixes #49.
|
|
that way we get the same result as the 'apk add world' at boot
time; it might differ from currently installed set (ref #49).
|
|
more fine grained control what to load, and rename some of the
flags to be shorter.
|
|
|
|
printf %i does not work so well with size_t on 64 bit.
Use %zu which seems to be portable enough.
|
|
Administrative tool to download or delete files to/from the cache.
|
|
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.
|
|
And use it in couple of places. Some whitespace fixes too.
|
|
And add some more verbosity to the help message.
|
|
That will make the upgrade prefer packages available in repositories.
This is good if one want's to downgrade packages by removing an experimental
repository. Or to force re-install of locally built vs. repository version
when the package version are same, but checksum is different. Fixes #51.
|
|
Currently just goes through all world dependencies and updates them
where possible (ref #51).
|
|
|
|
We want be able to compare blobs so we basicly revert the old change,
and make a wrapper that takes version strings.
|
|
make apk_version_compare() take strings rather than blobs
add apk_pkgversion_compare(), a wrapper that takes packages
|
|
We might want to add an --update-index option to misc applets. For
example:
apk add --update-index -u package
apk version --update-index
|