| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Unfortunately libfetch operates on raw sockets and is sending
each HTTP request line using separate syscall which causes the
HTTP request to be sent as multiple packets over the wire in most
configurations. This is not good for performance, but can also
cause subtle breakage if there's DPI firewall that does not get
the Host header.
Incidentally, it seems that on BSDs libfetch already sets
TCP_NOPUSH optimize the packetization. This commit adds same
logic for using TCP_CORK if available. When using TCP_CORK
there is no requirement to set TCP_NODELAY as uncorking will
also cause immediate send. Keep TCP_NODELAY in the fallback
codepaths.
Long term, it might make sense to replace or rewrite libfetch
to use application level buffering.
(cherry picked from commit 271047cc930150a2972573625124b0c097ad322a)
|
|
|
|
|
|
|
| |
- do not do unaligned accesses on non-x86 hardware
- clean up the code a little bit
(cherry picked from commit 3694dc5fa2660e2b241d706ec1672beb0a9c24b8)
|
|
|
|
|
|
| |
Related to MR !15
(cherry picked from commit d60477751f374a2d58dc73f64dca4ff95ea39a00)
|
|
|
|
|
|
|
|
|
| |
Instead, to make sure test mode produces same output, redefine
time() for the test mode binary.
Reverts parts of 0b82bcc53e60.
(cherry picked from commit 45d313c51cbae20bce0789db86ba82ff79c9b202)
|
|
|
|
| |
(cherry picked from commit 6fae74e1daeb59f789456dcc816b089e601809fd)
|
|
|
|
|
|
| |
The non-wildcard version of the function is case-sensitive anyway.
(cherry picked from commit 7e2e440d4c7c51bff3ffb83ad3fd29d7b6088e32)
|
|
|
|
| |
(cherry picked from commit 3cd7d1e077ad945dfe789a6e2a337ec8849fc342)
|
|
|
|
| |
(cherry picked from commit e39334e44f723b0a1d1036f354c5d8f5d0a12377)
|
|
|
|
| |
Fixes #8360
|
| |
|
|
|
|
|
|
|
| |
This reverts commit d379edd5bf960de8089b9f2083fc6f14b79e7bba.
Requested multiple times. Let's enable this for now. For v3.0,
we reconsider which applets to keep and remove the ones not needed.
|
|
|
|
| |
Fixes #10662
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
When unpacking a file that is in root, it got a temporary file
name /.apk... however if the --root option was used it should
have the name root/.apk... otherwise unpacking will fail if the
user does not have write access to /.
Signed-off-by: Fredrik Gustafsson <fredrigu@axis.com>
|
|
|
|
| |
Replace dash (default sh) with bash to make tests work.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Since 37fbafcd928c466c82c892a7868d686d710e5d07 the tests hasn't worked
since a string on the stack was added as version for a virtual package.
Instead create the version string on the heap and then simply leak it.
A short running program as apk shouldn't need to worry about memory
leaks.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes 37fbafcd by adding more input to the hash than just second
grained time stamp - collisions would happen when running apk
scripted.
For virtual package the hash works only as unique identifier, so
try to add elements that should make it unique in most cases.
Fixes #10648
|
| |
|
|
|
|
| |
Fixes commits 37fbafcd and 1c47f374.
|
|
|
|
|
|
|
| |
Add also some testing to make sure help, long help and handling
of invalid arguments works as expected.
Based on pull request #19 originally by Laurent Arnoud (@spk).
|
|
|
|
|
|
| |
The return -1 seems to have been left over from earlier code, and
could have been treated as -EPERM. This helps to fix the other command
line handling that potentially require changing.
|
|
|
|
|
|
| |
Notably this fixes occasional issues when doing upgrade with multiple
versions of same packages. Without this the upgrade flag is not always
propagated properly down the dependency chain.
|
|
|
|
| |
fixes test suite regression from previous commit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Originally the virtual packages could have dependencies added to it.
However, commit b06e3b99 broke this behaviour to fix error reporting.
The root cause however was that the virtual depedency package was not
properly versioned.
This fixes to use current date/time as the package version, and
constructs the "faked" package hash from it. This effectively makes
"add -t virtpkg deps.." replace the dependencies which should be the
desired behaviour for "abuild deps".
'world' dependency to the generated virtual package is also now
versioned to make sure it get's upgraded.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
BIT(1) corresponds with decimal 2, which is the first available repository.
Before this fix, `apk list -O` would list every package installed from the
first available repository, which is the 'system' repository on most Adélie
Linux computers.
After this fix, `apk list -O` correctly lists only the packages which are
no longer available.
|
|
|
|
|
|
| |
error: 'strncpy' specified bound 4096 equals destination size [-Werror=stringop-truncation]
Based on patch by Elan Ruusamäe <glen@delfi.ee>
|
| |
|
|
|
|
| |
Give error message for `apk fetch --recursive missing`
|
| |
|
|
|
|
|
|
|
| |
This reverts commit 358f703b76ece639e5d3634f677e0b345b1b9f89.
The short option -s conflicts info --size and fetch --stdout.
Revert this for now.
|
| |
|
| |
|
|
|
|
| |
remove also redundant pkg_selectable check in repair mode.
|
| |
|
| |
|
|
|
|
|
| |
Move addition of virtual package after the dependencies have been parsed
as then the reverse dependency structers can be populated correctly.
|
| |
|
|
|
|
|
| |
this would happen if same package matched multiple times due to
multiple provided names.
|