1. 31 Mar, 2017 1 commit
  2. 09 Jan, 2017 2 commits
    • Karel Koci's avatar
      Error on content missing and allow ignore · ccf40af2
      Karel Koci authored
      If content is missing (can't be received for what ever reason), we fail
      updater run instead of just printing warning and continuing. To not fail
      there can be used "content" string in ignore extra field of Package.
      ccf40af2
    • Karel Koci's avatar
      Allow embedding of busybox binary to updater · d44bae94
      Karel Koci authored
      This allows us to not depend on system binaries in updater it self. And
      is one step to make updater self contained just so that it will work on
      even pretty much broken system.
      d44bae94
  3. 21 Nov, 2016 1 commit
  4. 07 Nov, 2016 1 commit
  5. 30 Sep, 2016 1 commit
    • Karel Koci's avatar
      Generate test coverage information · faa3c376
      Karel Koci authored
      Defining "COV' for make will enable generation of coverage data. Then
      running tests will create those data and html can be generated with
      "COV=y make coverage".
      
      Coverage is generated for both C and Lua. C uses gcov. Lua is our hacky
      implementation.
      faa3c376
  6. 07 Sep, 2016 1 commit
  7. 01 Sep, 2016 1 commit
    • Michal 'vorner' Vaner's avatar
      interpreter: Allow storing parameters to registry · aafb16b5
      Michal 'vorner' Vaner authored
      Allow storing results of functions to registry and passing them as
      parameters to other functions when called through the
      interpreter_call/interpreter_collect_results interface. This allows
      passing complex data structures around without the need for C to
      manipulate them.
      aafb16b5
  8. 23 Aug, 2016 2 commits
  9. 19 Aug, 2016 1 commit
    • Michal 'vorner' Vaner's avatar
      cppcheck: Tune it up a bit · d92a860f
      Michal 'vorner' Vaner authored
      • There's nothing wrong with alloca and using dynamic arrays is not
        possible at some times (eg. our aprintf).
      • Enable further analyses.
      • Drop some false positives and minor worries.
      d92a860f
  10. 18 Aug, 2016 1 commit
    • Karel Koci's avatar
      Add cppcheck for C static code analysis · f141e8b3
      Karel Koci authored
      This is not best tool for static code analysis, but it has low number
      of false positives. We might want combine it with another tool to have
      better overall check.
      f141e8b3
  11. 08 Aug, 2016 2 commits
  12. 05 Aug, 2016 1 commit
    • Karel Koci's avatar
      Add lstat function to lua interpreter · e79e5c5c
      Karel Koci authored
      In previous implementation lstat could been called from lua via
      appending another argument to stat. Instead of that we have now lstat as
      function directly in lua, and previous additional boolean argument is
      now C function argument. Probably better would be to use C closures, but
      this would add too much complications and would be currently used only
      by one function. In future it might be better to use closures if more
      such functions were implemented.
      e79e5c5c
  13. 26 Jul, 2016 1 commit
    • Michal 'vorner' Vaner's avatar
      backend: Install dead symbolic links · 3c12e3ca
      Michal 'vorner' Vaner authored
      If there's a dead symbolic link in between the files to be installed
      (because the target has already been installed), then we want to use
      lstat to determine the existence of the link, instead of stat (which
      would say it doesn't exist). That way the symbolic link is installed as
      well.
      3c12e3ca
  14. 25 Jul, 2016 2 commits
    • Karel Koci's avatar
      Embed entry.lua to pkgupdate · 6c80de5e
      Karel Koci authored
      pkgconfig can now be executed without specifying entry point. If no
      entry point is provided, internal:entry_lua is used.
      6c80de5e
    • Karel Koci's avatar
      Add support for internal uri · a8a6c3fa
      Karel Koci authored
      You can place files to internal directory in src/pkgupdate to embedded
      them to finished binary file. Such files can be then accessed using uri
      of format internal://
      a8a6c3fa
  15. 22 Jul, 2016 1 commit
    • Karel Koci's avatar
      Fix error reporting of interpreter_include · ae57f103
      Karel Koci authored
      During latest changes in error handling in interpreter we didn't
      updated function interpreter_include. When this function failed
      no error was reported. This is now tested as part of loading test.
      ae57f103
  16. 20 Jul, 2016 2 commits
    • Karel Koci's avatar
      err report: support multiple errors · 7c690f90
      Karel Koci authored
      When execution is paralleled it trow multiple errors at once. This adds
      support for such errors.
      7c690f90
    • Karel Koci's avatar
      err report: print only short message · 3e027cf3
      Karel Koci authored
      When handling lua error and something fails we will print only error
      message and reason. Whole stack trace is dumped to syslog as debug
      output and to crash log, which is file in fixed path:
      /tmp/updater_crash.log
      3e027cf3
  17. 08 Jul, 2016 1 commit
  18. 30 Jun, 2016 1 commit
  19. 03 Jun, 2016 1 commit
  20. 30 May, 2016 1 commit
    • Michal 'vorner' Vaner's avatar
      Bugfix: Use external mv every time · dfa942d6
      Michal 'vorner' Vaner authored
      It seems the musl's rename() doesn't actually move a symlink over
      another symlink in some cases, without returning an error. This led to
      installing a new kernel file, but not updating the symlink.
      dfa942d6
  21. 10 May, 2016 1 commit
  22. 09 May, 2016 1 commit
    • Michal 'vorner' Vaner's avatar
      Various aestetics · 36a64b03
      Michal 'vorner' Vaner authored
      • Log some more debug events.
      • Fix log prefix of „INFO“.
      • Remove copy-pasted comments that belong into different files.
      • Remove outdated comment.
      36a64b03
  23. 15 Apr, 2016 2 commits
  24. 13 Apr, 2016 1 commit
  25. 30 Mar, 2016 2 commits
  26. 22 Mar, 2016 1 commit
    • Michal 'vorner' Vaner's avatar
      lua: File locks · 31439957
      Michal 'vorner' Vaner authored
      Wrap the lockf call into an object. It locks a file when created and it
      is possible to release the lock.
      
      Include some code refactoring, so creating lua modules is easier.
      31439957
  27. 21 Mar, 2016 1 commit
  28. 11 Mar, 2016 1 commit
  29. 08 Mar, 2016 2 commits
  30. 03 Mar, 2016 1 commit
  31. 01 Mar, 2016 2 commits