Skip to content
Snippets Groups Projects
  1. Jul 02, 2015
    • Timo Teräs's avatar
      relocate lock file to /lib/apk/db · 57de8d0c
      Timo Teräs authored
      the problem is that var/lock is on root installs symlink to /run/lock
      (on tmpfs) and does not exist if doing chroot() to that root. fixes
      apk to work when chrooted to existing rootfs install.
      57de8d0c
  2. Jun 26, 2015
  3. Jun 12, 2015
  4. Jun 11, 2015
    • Timo Teräs's avatar
      use murmur3_32 hash · ed94d8ff
      Timo Teräs authored
      it is more efficient than the previously used djb hash
      ed94d8ff
    • Timo Teräs's avatar
      speed improvements for database opening · 4fab9290
      Timo Teräs authored
      resolve reverse dependencies after all packages have been loaded,
      and avoid traversing the reverse name lists. now that we use
      automatic virtual packages (soname, pkg-config, etc.) the reverse
      dependency chains can become considerable longer than what it was
      when the rdependency construction code was originally written.
      4fab9290
  5. Jun 10, 2015
  6. Jun 03, 2015
  7. Jun 01, 2015
  8. May 26, 2015
    • Timo Teräs's avatar
      apk-tools-2.6.0 · eef2e02b
      Timo Teräs authored
      eef2e02b
    • Alex Dowad's avatar
      detect failures in writing to file during final flush of buffers · 4c3712ec
      Alex Dowad authored and Timo Teräs's avatar Timo Teräs committed
      In practice this should fix to e.g. not wipe out /etc/apk/world if
      final flush to /etc/apk/world.new fails.
      
      This was prompted by an incident the other day where I ran the root
      partition of an Alpine box out of space using 'apk add', and apk
      helpfully wiped the contents of /etc/apk/world at the same time.
      
      It might be tricky to try to reproduce exactly the same failure,
      but from an examination of the code, setting 'rc' before the final
      call to fdo_flush rather than after is one possible cause of this
      behavior. (If the entire contents of /etc/apk/world.new are buffered,
      and all get written out in the final fdo_flush call, and that call
      fails, fdo_close will still happily rename /etc/apk/world.new to
      /etc/apk/world.)
      4c3712ec
  9. Apr 24, 2015
  10. Apr 22, 2015
    • Alex Dowad's avatar
      print.c: provide more detailed error messages if retrieving a package fails · 74dc8e23
      Alex Dowad authored and Timo Teräs's avatar Timo Teräs committed
      fetch_maperror() translates error codes returned by libfetch to our error
      codes. Handle those in apk_error_str(), returning error messages which
      advise the user of the most likely fix.
      
      A custom error code, EAPKSTALEINDEX, has been added for cases where
      retrieving a package fails due to a HTTP error 404 or similar.
      
      [TimoT: add also EAPKBADURL, as well as organize a bit better where the
      EAPKSTALEINDEX is generated]
      74dc8e23
    • Alex Dowad's avatar
      io: fix compiler error by including stdint.h · be31eb24
      Alex Dowad authored and Timo Teräs's avatar Timo Teräs committed
      According to the C standards, uint32_t is defined in stdint.h.
      Presumably apk is usually built against C libraries where
      stdint.h is indirectly included through another header file,
      but this isn't the case with the version of glibc which I am using.
      be31eb24
  11. Apr 17, 2015
  12. Apr 13, 2015
  13. Apr 10, 2015
  14. Apr 08, 2015
  15. Apr 07, 2015
  16. Mar 11, 2015
  17. Mar 10, 2015
Loading