1. 18 Mar, 2019 2 commits
    • 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.
    • Karel Koci's avatar
      Add Lua module for URI implemented in C · a718f158
      Karel Koci authored
      This exports URI and downloader in wrapped form to Lua.
  2. 07 Mar, 2019 1 commit
    • Karel Koci's avatar
      Add syscnf module and drop some config variables · b93311ab
      Karel Koci authored
      Incompatible changes:
      * --model and --board options were dropped for both pkgupdate and
      Following variables were dropped from updater configuration scripts:
      * board_name, model: this should be replaced by distribution root script
      * serial: same case like board_name and model
      * architectures: replaced by LEDE_ARCH of os_release
      New variables were introduced as a partial replacement:
      * os_release: target system etc/os-release content
      * host_os_release: host system /etc/os-release content
  3. 28 Feb, 2019 3 commits
    • Karel Koci's avatar
      updater: do not download package unless we know that it is approved · 0be0315a
      Karel Koci authored
      We do not download any package unless we know that they are going to be
      installed with this commit. It is done by split of download to separate
    • 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.
    • Karel Koci's avatar
      updater: drop missed content related code · d859ed55
      Karel Koci authored
      This code was here because of package content option but this feature is
      obsoleted and dropped so we can drop this code as well.
  4. 11 Dec, 2018 1 commit
    • Karel Koci's avatar
      Add new states updates to pkgupdate · 0bc60d2f
      Karel Koci authored
      This replaces way how we define state in pkgupdate. Now we have
      predefined enum that we use to identify sate instead of just using
  5. 07 Dec, 2018 1 commit
  6. 17 Jul, 2018 1 commit
  7. 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.
  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.
  9. 01 Jun, 2017 2 commits
    • Karel Koci's avatar
      Fix missing local function definition · 99a3b055
      Karel Koci authored
    • Karel Koci's avatar
      Add no-replan option to pkgupdate · 78cfb3a5
      Karel Koci authored
      When we are not using pkgupdate from packages (for example when we are
      running it in different root) then there is no reason to do replan. It
      might even cause problems when we are installing clean to clean root.
      This new option allows can be specified to deny replanning and that way
      ensure that everything is installed at once.
  10. 21 Nov, 2016 1 commit
  11. 07 Nov, 2016 1 commit
  12. 21 Oct, 2016 1 commit
  13. 26 Sep, 2016 1 commit
    • Karel Koci's avatar
      Remove unneeded sat module · a444adb6
      Karel Koci authored
      This module was originally for ability to decide if clauses are valid
      after they are generated. This is not required with current
  14. 07 Sep, 2016 1 commit
    • Karel Koci's avatar
      Add sat as lua extension for picosat · 25a7ca96
      Karel Koci authored
      This new extension allows adding clauses in form of batches. Single
      batch then can or don't have to be added to picosat. This gives us
      ability to drop some set of clauses when we encounter missing package
      and we should ignore it.
      Batches can refer to other batches. If batch is committed so are all
      referred batches.
  15. 06 Sep, 2016 1 commit
    • Karel Koci's avatar
      luacheck: define globals in files it self · f1ef162c
      Karel Koci authored
      We define all globals options for luacheck in file it self rather then
      in global configuration file. Not only that this is cleaner with
      respect to adding new lua scripts or renaming old ones, but also this
      list of globals is in file it self and don't have to be edited
  16. 29 Aug, 2016 1 commit
  17. 15 Aug, 2016 1 commit
  18. 11 Aug, 2016 1 commit
  19. 20 Jul, 2016 1 commit
  20. 13 Jul, 2016 1 commit
    • Michal 'vorner' Vaner's avatar
      Lock through the whole time db status is used · ce33b083
      Michal 'vorner' Vaner authored
      Use the backend.run_state whenever access to the parsed package status
      database is needed. This way we lock through all the accesses there and
      cache the parsed result, since it is cached either to the end of
      transaction or to the end of the program.
  21. 30 Jun, 2016 3 commits
  22. 06 Jun, 2016 1 commit
    • Michal 'vorner' Vaner's avatar
      Log package related events into a file · e6767d5f
      Michal 'vorner' Vaner authored
      Imitate the old updater and create the /tmp/update-state/log2. As the
      places and events don't match exactly (as we currently install the whole
      bunch of packages as one transaction and download in parallel), place it
      somewhere close.
  23. 03 Jun, 2016 1 commit
  24. 18 May, 2016 1 commit
  25. 12 May, 2016 1 commit
    • Michal 'vorner' Vaner's avatar
      Hide private data · 61b92377
      Michal 'vorner' Vaner authored
      Hide some data (like contexts and other complex objects) from the
      objects returned to the configuration scripts. That would allow the
      scripts to access internal data of the contexts and, for example, change
      its security level.
  26. 10 May, 2016 1 commit
  27. 09 May, 2016 2 commits