1. 02 Jul, 2018 1 commit
    • Sören Tempel's avatar
      list: fix segmentation fault with virtual packages · 5c4b90df
      Sören Tempel authored
      Virtual packages have the origin pointer set to NULL. Trying to print it
      using the BLOB_PRINTF macros causes a segmentation fault.
      
      Inspired by the `print_origin_name` function from `src/search.c` this
      commit attempts to fix it by checking whether `pkg->origin` is NULL
      before attempting to print it. If it is NULL the pkg name is printed
      instead.
      
      Since printing the pkg name requires a different format string this
      commit splits the printf call for printing the package line into
      multiple ones. The output format shouldn't have changed at all though.
      5c4b90df
  2. 24 Jun, 2018 1 commit
  3. 14 Jun, 2018 3 commits
  4. 08 May, 2018 1 commit
  5. 05 Apr, 2018 1 commit
    • Timo Teräs's avatar
      db: fix refreshing index if time is zero · 258519b1
      Timo Teräs authored
      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.
      258519b1
  6. 21 Feb, 2018 1 commit
  7. 20 Feb, 2018 3 commits
  8. 09 Feb, 2018 1 commit
  9. 31 Jan, 2018 1 commit
    • A. Wilcox's avatar
      libfetch: support OpenSSL · 36f5cf8e
      A. Wilcox authored
      TLS_client_method is a LibreSSL extension.
      SSLv23_client_method is generic, and doesn't mean SSL v2/v3 only.
      36f5cf8e
  10. 29 Jan, 2018 6 commits
  11. 28 Jan, 2018 1 commit
    • William Pitcock's avatar
      list: new applet · fff8bfa5
      William Pitcock authored
      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`).
      fff8bfa5
  12. 09 Jan, 2018 5 commits
  13. 08 Jan, 2018 2 commits
  14. 04 Jan, 2018 2 commits
    • Timo Teräs's avatar
      d0a25d67
    • Timo Teräs's avatar
      enable automatic update of indexes controlled by --cache-max-age · 8a28c6d0
      Timo Teräs authored
      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.
      8a28c6d0
  15. 03 Jan, 2018 8 commits
  16. 02 Jan, 2018 3 commits