aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* apk-tools-2.10.0v2.10.0Natanael Copa2018-06-241-1/+1
|
* apk-tools-2.10.0_rc1v2.10.0_rc1Timo Teräs2018-06-141-1/+1
|
* fetch: ignore conflicts when solving --recursive fetchesTimo Teräs2018-06-143-9/+25
|
* fetch: include install_if dependencies with --recursiveNatanael Copa2018-06-141-26/+23
| | | | | | Run apk_solver_solve once with all args as dependencies instead of running apk_solver_solve for each arg. This is neccesary so the install_if calculation is done correctly.
* url: return relevant error value from apk_istream_fetchEdan Bedrik2018-05-081-3/+10
|
* db: fix refreshing index if time is zeroTimo Teräs2018-04-051-3/+5
| | | | | | During netboot on systems without RTC, time() will be near zero, and the index fill not exist. Thus the plain test of st.st_mtime against system time failed. Verify that fstatat() succeeds.
* solver: allow names with only one provider to be autoselected regardless of ↵William Pitcock2018-02-212-3/+11
| | | | priority
* tests: make sure adding a pinning to a child dependency failsWilliam Pitcock2018-02-201-0/+5
|
* add: child dependencies can never take a pinning, give a useful errorWilliam Pitcock2018-02-201-3/+4
|
* apk: in test mode, always exit 0 (so the test harness doesn't stop running ↵William Pitcock2018-02-201-0/+5
| | | | tests)
* travis: update alpine-chroot-install to 0.7.0Jakub Jirutka2018-02-091-3/+3
|
* libfetch: support OpenSSLA. Wilcox2018-01-311-1/+1
| | | | | TLS_client_method is a LibreSSL extension. SSLv23_client_method is generic, and doesn't mean SSL v2/v3 only.
* list: use `apk list --providers` to search virtual providers instead of ↵William Pitcock2018-01-291-6/+8
| | | | enabling virtuals by default
* search: remove from APK_COMMAND_GROUP_QUERYWilliam Pitcock2018-01-291-1/+0
| | | | list does everything search does and more
* list: add option to match against real names only instead of providersWilliam Pitcock2018-01-291-1/+7
|
* list: add --depends option for searching based on rdependsWilliam Pitcock2018-01-291-3/+27
|
* list: refactor package dumping vs package filteringWilliam Pitcock2018-01-291-20/+20
|
* test: fix test6 testcaseWilliam Pitcock2018-01-291-1/+1
|
* list: new appletWilliam Pitcock2018-01-282-1/+236
| | | | | | | | | | The list applet provides a convenient way of inspecting both the available and installed package databases by listing their contents. In some ways, it is similar to `apk search` but is considered to be a superset of `apk search` functionality. A few `apk list` criterion are not yet ready though, such as `apk list --depends` which searches by runtime dependency (replacing `apk info --rdepends`).
* apk: make --help --verbose actually work.William Pitcock2018-01-091-1/+10
|
* apk: properly error out if an unknown command is requestedWilliam Pitcock2018-01-091-1/+5
|
* apk: commit options help text: fix typo concerning diskless bootWilliam Pitcock2018-01-091-1/+1
|
* apk: usage: cleanup help text when no applet is selectedWilliam Pitcock2018-01-0916-13/+52
|
* fix --update-cache help to reflect realityTimo Teräs2018-01-091-1/+1
| | | | | Internally the value is in seconds, but on command line it's in minutes.
* apk-tools-2.9.1v2.9.1Timo Teräs2018-01-081-1/+1
|
* auto-update index only when database is opened for writingTimo Teräs2018-01-082-1/+3
|
* increase libfetch connection pool limits slightlyTimo Teräs2018-01-041-1/+1
|
* enable automatic update of indexes controlled by --cache-max-ageTimo Teräs2018-01-049-36/+53
| | | | | | | | | | | | | | | | This modifies apk cache for indexes to be automatically refreshed periodically without explicit 'update' or '--update-cache' usage. The default is to do if-modified-since request if the local copy is older than 4 hours. This age can be changed with --cache-max-age. Using --update-cache will change this age to 60 seconds to make sure the cached copy is relatively new. The small age is in order to try to avoid downloading indexes second time when apk-tools is upgraded and apk re-execs after self-upgrade. Accordingly using explicitly 'apk update' will now enforce --force-refresh and request the very latest index by requesting any potential http proxy to do refresh too.
* url: add "Cache-Control: no-cache" header with --force-refreshTimo Teräs2018-01-031-1/+1
| | | | fixes #8161
* split --force to several --force-[type] optionsTimo Teräs2018-01-039-24/+60
| | | | | | | | | This unloads --force as several of the things are really not wanted together. E.g. --force-refresh is a lot different from --force-broken-world and doing --force to get the other might introduce unwanted behaviour. --force is still kept for backwards compatibility and it enables most things --force was used for.
* libfetch: add option to set "Cache-Control: no-cache"Timo Teräs2018-01-031-1/+4
| | | | ref #8161
* add new umbrella flag --initramfs-diskless-bootHenrik Riomar2018-01-031-0/+6
| | | | | This flag enables a group of options used during initramfs tmpfs initial install.
* add new flag --no-commit-hooksHenrik Riomar2018-01-033-0/+9
| | | | | | | | 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.
* libfetch: honor https_proxy variable for httpsTimo Teräs2018-01-031-11/+30
| | | | fixes #8160
* db: fix triggers to report deleted directoriesTimo Teräs2018-01-032-16/+20
| | | | | | | | | This change just changes to keep deleted directory items in the hash with ref count zero and modified flag set. Those entries are reused when needed. The side effect is that fire_triggers() will now see those removed direcotries and reports them. Other enumerators of the directories hash are protected to skip removed directories when appropriate.
* apk, del: fix few memory leaksTimo Teräs2018-01-032-1/+5
| | | | | | This fixes couple of valgrind reported leaks - though they are non-important since the leak happens on "exit" only and kernel frees it anyway.
* commit: properly analyze packages with provides="$pkgname"Timo Teräs2018-01-023-1/+17
|
* test: add test to ensure a provider that is already satisfied doesn't get ↵William Pitcock2018-01-021-0/+7
| | | | swapped
* test: add testcases to ensure provider collisions generate an errorWilliam Pitcock2018-01-023-0/+36
|
* apk-tools-2.9.0v2.9.0Timo Teräs2017-12-301-1/+1
|
* fix typo in MIPS byte-order apk_defines.hNils Andreas Svee2017-12-151-1/+1
|
* solver: fix potential install_if processing failure, fixes #8237Timo Teräs2017-12-123-46/+77
| | | | | | | | | In discovery phase, there was logic to not process packages multiple times. However, that logic failed to account the package's depth and install_if state for the name being processed. This caused install_if processing failure in certain topologies of the dependency graph. Adds also a test case that should catch this issue reliably.
* add detection of mips archsNils Andreas Svee2017-12-111-0/+8
|
* fetch: print additional error diagnostics in verbose modeTimo Teräs2017-11-281-2/+5
|
* solver: prefer highest requirer count above installed statusWilliam Pitcock2017-11-022-7/+8
| | | | | This ensures a swap is emitted when replacing a virtual with apk add.
* solver: fix dbg_printf() call in select_package()William Pitcock2017-11-021-2/+2
|
* solver: only select a default if there is at least one provider with a ↵William Pitcock2017-11-023-1/+31
| | | | declared provider_priority
* solver: instead of tracking selected packages, score by requirer count for ↵William Pitcock2017-11-022-7/+13
| | | | tiebreaking
* solver: implement support for choosing default virtualsWilliam Pitcock2017-11-029-11/+51
| | | | | | | | | | By introducing a new package metadata field, `provider_priority` (index letter `k`), we can specify default packages to satisfy a virtual. If a user wishes to select an alternative provider for the virtual, a changeset swapping the default provider for the selected provider will be generated by the dependency resolver.
* apk-tools-2.8.1v2.8.1Timo Teräs2017-10-271-1/+1
|