1. 18 Mar, 2019 1 commit
    • Karel Koci's avatar
      Integrate new URI implementation · 9926663d
      Karel Koci authored
      This commit changes a lot of functionality including user visible ones
      such as configuration language.
      
      The most significant from users point is that in configuration language
      functions no longer return handlers for configuration they created. This
      is to simplify implementation. The correct approach is to use package or
      repository name instead of handler. Handler usage was less powerful and
      because of sandboxing also unusable across multiple scripts.
      
      There are additional changes in form of obsoleted extra options for
      configuration commands. Repository's extra option subdirs is obsoleted
      and works differently and much more. Please review changes in language
      documentation file.
      9926663d
  2. 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
      requirements.
      
      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.
      5b9b4d2f
  3. 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.
      1b5519c7
  4. 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.
      1c3769dc
  5. 27 Jun, 2018 1 commit
  6. 26 Jun, 2018 1 commit
  7. 13 Apr, 2018 1 commit
  8. 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.
      2e276e1e
  9. 19 Sep, 2017 1 commit
  10. 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.
      defbd8a0
  11. 08 Aug, 2017 1 commit
  12. 09 Mar, 2017 1 commit
  13. 16 Feb, 2017 2 commits
    • Karel Koci's avatar
      Add test for dropped file · ff7b2d8e
      Karel Koci authored
      ff7b2d8e
    • 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.
      e58345b5
  14. 01 Feb, 2017 1 commit
  15. 24 Nov, 2016 1 commit
  16. 21 Nov, 2016 1 commit
  17. 30 Sep, 2016 1 commit
  18. 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.
      71ce6282
  19. 24 Aug, 2016 1 commit
  20. 16 Aug, 2016 1 commit
  21. 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.
      ee03f14c
  22. 30 Jun, 2016 3 commits
  23. 23 May, 2016 1 commit
  24. 09 May, 2016 1 commit
  25. 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).
      4f280cd8
    • 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.
      983323f7
  26. 30 Mar, 2016 2 commits
  27. 14 Mar, 2016 2 commits
  28. 11 Mar, 2016 2 commits
  29. 10 Mar, 2016 1 commit
  30. 09 Mar, 2016 1 commit
  31. 07 Mar, 2016 1 commit
  32. 04 Mar, 2016 2 commits