1. 28 Feb, 2019 1 commit
    • Karel Koci's avatar
      transaction: instead of data use files on fs · 5b9b4d2f
      Karel Koci authored
      This replaces problematic data pass in Lua with files saved on disk.
      Original problem is that Lua in some cases like closures duplicates
      environment and that means also all data. If this happens few times
      (from measurements it seems like two or three times in code segment we
      are dropping in this) then we can have few times bigger memory
      This also temporally disables test test-sys-pkgupdate-plan-unapproved as
      it does not expect additional files. This is going to be solved in
      following commit.
  2. 11 Dec, 2018 1 commit
    • Karel Koci's avatar
      Implement timeout correctly for subprocess · 1b5519c7
      Karel Koci authored
      This changes timeout from seconds to milliseconds. This is consistent
      with previous events design.
      Previously used seconds had to be multiplied and milliseconds divided
      respectively to hook to current code. This just makes more sense.
  3. 03 Jul, 2018 1 commit
    • Karel Koci's avatar
      Add options --model and --board · 1c3769dc
      Karel Koci authored
      This also moves some configuration variables from backend to separate
      syscnf module.
      Original design where hard coded in values were used as defaults is not
      replaced with design where set function is required to be called before
      anything is done. Commonly that is suppose to be done in C before we
      start using other Lua modules.
      Thanks to new options --model and --board we can now set target even
      outside of the router environment without requiring /tmp tainting. It's
      now also not possible to run updater's executables on non-openwrt
      platform without specifying those two options.
  4. 27 Jun, 2018 1 commit
  5. 26 Jun, 2018 1 commit
  6. 13 Apr, 2018 1 commit
  7. 25 Oct, 2017 1 commit
    • Karel Koci's avatar
      Drop flags · 2e276e1e
      Karel Koci authored
      Idea behind flags was that scripts can save some notes for future
      execution. We are not using this anywhere and probably we wont ever use
      it. Also this somewhat goes against idea of stateless configuration.
      Overall we clean clean a lot of code if we drop this unused feature.
  8. 19 Sep, 2017 1 commit
  9. 29 Aug, 2017 1 commit
    • Karel Koci's avatar
      Steal configuration files from installed package too · defbd8a0
      Karel Koci authored
      Configuration files can be moved from package to package and we should
      be able to handle that. Previous implementation had limitation that it
      handled only configuration files from package that were removed. This
      commit removes this restriction.
      Also note that there should be no way that we could steal configuration
      from package requiring it as that would be collision between packages
      and as such we would already failed at this point.
  10. 08 Aug, 2017 1 commit
  11. 09 Mar, 2017 1 commit
  12. 16 Feb, 2017 2 commits
    • Karel Koci's avatar
      Add test for dropped file · ff7b2d8e
      Karel Koci authored
    • Karel Koci's avatar
      Reimplement files collisions checking · e58345b5
      Karel Koci authored
      This is new implementation of files collisions checking algorithm.
      Previous implementation could loose track of some files. New
      implementation now fully build file system tree and using DFS looks for
      collisions. This new implementation might be slower, but its simplicity
      should ensure robustness.
  13. 01 Feb, 2017 1 commit
  14. 24 Nov, 2016 1 commit
  15. 21 Nov, 2016 1 commit
  16. 30 Sep, 2016 1 commit
  17. 26 Sep, 2016 1 commit
    • Karel Koci's avatar
      Don't split Depends to table and some cleanups · 71ce6282
      Karel Koci authored
      Don't split Depends field in backend. This format can also be specified
      in configuration file, so it can be done in postprocess together.
      prune_arr implemented in utils. It's code originally used in planner to
      remove nil elements from array. This is now used on multiple places
      where some workaround been used until now.
      Also some more tests added to previously untested features.
  18. 24 Aug, 2016 1 commit
  19. 16 Aug, 2016 1 commit
  20. 01 Aug, 2016 1 commit
    • Karel Koci's avatar
      Fix info files cleanup · ee03f14c
      Karel Koci authored
      When package has name with dot, updater would clean up its info files
      every execution, because it expected that package can't have any dot in
      name. This is now changed to instead cut everything from first dot to
      end to only cut from last dot to end.
  21. 30 Jun, 2016 3 commits
  22. 23 May, 2016 1 commit
  23. 09 May, 2016 1 commit
  24. 19 Apr, 2016 2 commits
    • Michal 'vorner' Vaner's avatar
      pkg: Not-installed flag · 4f280cd8
      Michal 'vorner' Vaner authored
      Don't get confused if you see it. Also, produce it in case we leave a
      modified config behind (but listing only the modified configs, removing
      the rest).
    • Michal 'vorner' Vaner's avatar
      pkg: Handle truncated sha256 · 983323f7
      Michal 'vorner' Vaner authored
      Bug compat mode.
      Some things produce truncated sha256 hashes in the status file. While
      this bug is likely already fixed in opkg and it would not happen in
      deployment, be ready to handle that bug anyway.
  25. 30 Mar, 2016 2 commits
  26. 14 Mar, 2016 2 commits
  27. 11 Mar, 2016 2 commits
  28. 10 Mar, 2016 1 commit
  29. 09 Mar, 2016 1 commit
  30. 07 Mar, 2016 1 commit
  31. 04 Mar, 2016 2 commits
  32. 02 Mar, 2016 1 commit