| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Most applets return whatever apk_solver_commit() returns. It is the
number of errors found (or negative for hard error). Sanitize the
error value to not give false success exit code in the unlikely case
of errors % 256 == 0.
Reported-by: Max Justicz <max@justi.cz>
(cherry picked from commit 7b654e125461b00bc26e52b25e6a7be3a32c11b9)
|
|
|
|
|
|
|
|
| |
This flag enables a group of options used during initramfs tmpfs
initial install.
(cherry picked from commit e0eff8742f342c2c23e1d7ee081f3afd08cb5169)
(cherry picked from commit 46d2a419213e5e355e49066ab014ba3274d2fb87)
|
|
|
|
|
|
|
|
|
|
|
| |
This flag skips running hook scripts
This flag *must* be used during initramfs tmpfs initial install.
The reason that this new flag is needed is that the hooks will currently
always fail as musl and /bin/sh is missing at this stage on diskless.
(cherry picked from commit 23cb10477537a2bbf40ac06a61046f75f2b160c5)
(cherry picked from commit f62d6ce1287a02e65b19abc47f0dc23041d38941)
|
|
|
|
|
|
|
| |
This reduces function pointers in heap, and unifies how the
io functions are called.
(cherry picked from commit 09ca58863af02d11e8dbf066b714464fb1638e6f)
|
|
|
|
| |
cleans up procfs mount
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Implement --no-cache. The index is read directly from network and not
cached. This is useful for docker, where you install a set of packages
and directly after purge the cache. (see
https://github.com/gliderlabs/docker-alpine/blob/1fc9e59d1689fc4eaf930ec66389fe58062fccec/builder/scripts/apk-install)
fixes #4905
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Add also a new 'commit' group that is the common options
for all applets that can commit package changes.
|
| |
|
|
|
|
|
| |
Also if --purge is specified delete all uninstalled packages.
Fixes #2889
|
| |
|
|
|
|
|
|
|
|
| |
the dynamic applet registration never worked with PIE, and as
a temporary hack -nopie was added to default link flags in 2008.
this commit reworks the applet registration mechanism to something
that is compatible with PIE, and removes the hack. finally!
|
|
|
|
|
| |
Simply print the default arch and exit.
This is so scripts don't need to parse the output of -V.
|
|
|
|
|
|
| |
stdout is the proper place for it. this also fixes the progress
bar in musl, which seems to not support using line buffering for
stderr.
|
|
|
|
|
| |
to not run any per-package scripts. useful for managing buildroot
when cross-compiling.
|
| |
|
| |
|
| |
|
|
|
|
| |
Acked-by: Natanael Copa <ncopa@alpinelinux.org>
|
|
|
|
| |
Otherwise we cannot override with --no-progress
|
| |
|
| |
|
|
|
|
|
|
| |
make cache a special kind of repository, and automatically cache
special packages (virtual packages, or ones installed from command
line). add test cases for handling virtual packages. fixes #1617.
|
| |
|
| |
|
| |
|
|
|
|
| |
also merge the expected output to the *.test files.
|
|
|
|
|
|
|
| |
In case someone prefers extra quesions while running apk in a
terminal. The file is always from the real root; not from --root
so that we will not accidentally enable interactive mode when in
initramfs bootstrap.
|
| |
|
| |
|
|
|
|
|
| |
Use it to avoid self-upgrade loops in case something fails during
the initial upgrade attempt.
|
| |
|
| |
|
|
|
|
|
| |
* fixup the help messages to align up properly
* refresh screen width on SIGWINCH
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This is so we can do x86 --root installs on x86_64 hosts.
Using --arch without --root can make great damage so we only enable it
if --root is used.
|
|
|
|
|
|
| |
* make it as wide as the screen
* make sure it's drawn after package change
* and draw it using ansi escapes in line buffered stderr
|
|
|
|
| |
and make the progress bar disappear on regular runs too.
|
|
|
|
|
|
| |
Also re-exec's apk-tools to perform rest of the upgrade using
the new apk-tools. This allows handling of new apk-tools features
properly. Fixes #140.
|
|
|
|
|
|
|
| |
- implement a hash table for commonly shared fields such as
license, version and architecture
- use macroes to print blobs or pkgname-pkgver strings
- fix some old cruft
|
|
|
|
|
| |
Otherwise we end up using wrong uid/gid mappings when doing install
to alternate system root. Fixes #434.
|
|
|
|
|
| |
We want minimal static build. And this now also breaks with our openssl
since it tries to automatically dlopen some of the engine modules.
|