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. 14 Jun, 2018 2 commits
  3. 08 May, 2018 1 commit
  4. 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
  5. 21 Feb, 2018 1 commit
  6. 20 Feb, 2018 2 commits
  7. 29 Jan, 2018 5 commits
  8. 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
  9. 09 Jan, 2018 5 commits
  10. 08 Jan, 2018 1 commit
  11. 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
  12. 03 Jan, 2018 6 commits
    • Timo Teräs's avatar
      2da67940
    • Timo Teräs's avatar
      split --force to several --force-[type] options · 039ff3bd
      Timo Teräs authored
      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.
      039ff3bd
    • Henrik Riomar's avatar
      add new umbrella flag --initramfs-diskless-boot · e0eff874
      Henrik Riomar authored
      This flag enables a group of options used during initramfs tmpfs
      initial install.
      e0eff874
    • Henrik Riomar's avatar
      add new flag --no-commit-hooks · 23cb1047
      Henrik Riomar authored
      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.
      23cb1047
    • Timo Teräs's avatar
      db: fix triggers to report deleted directories · b0fcc56f
      Timo Teräs authored
      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.
      b0fcc56f
    • Timo Teräs's avatar
      apk, del: fix few memory leaks · 8ee79c72
      Timo Teräs authored
      This fixes couple of valgrind reported leaks - though they are
      non-important since the leak happens on "exit" only and kernel
      frees it anyway.
      8ee79c72
  13. 02 Jan, 2018 1 commit
  14. 15 Dec, 2017 1 commit
  15. 12 Dec, 2017 1 commit
    • Timo Teräs's avatar
      solver: fix potential install_if processing failure, fixes #8237 · 8e7fd3e0
      Timo Teräs authored
      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.
      8e7fd3e0
  16. 11 Dec, 2017 1 commit
  17. 28 Nov, 2017 1 commit
  18. 02 Nov, 2017 5 commits
  19. 27 Oct, 2017 1 commit
    • Timo Teräs's avatar
      solver: consider virtual provides to exclude non-provides transitively · e03716ff
      Timo Teräs authored
      this fixes package selection when a 'real' package exists, but would
      need to be provided by another package with 'virtual provides'.
      
      In current package database this can happen with postgresql which is
      also provided by postgresql-bdr. Normally postgresql would be satisfied
      by postgresql, but if any package depends on postgresql-bdr and there's
      no versioned dependency on postgresql this will help apk figure out
      that postgresql-bdr should be used.
      e03716ff
  20. 12 Oct, 2017 1 commit