1. 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
  2. 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.
  3. 12 Sep, 2017 1 commit
  4. 01 Jun, 2017 1 commit
    • 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.
  5. 09 May, 2017 1 commit
  6. 21 Nov, 2016 1 commit
  7. 07 Nov, 2016 1 commit
  8. 27 Sep, 2016 1 commit
  9. 07 Sep, 2016 1 commit
  10. 16 Aug, 2016 1 commit
  11. 15 Aug, 2016 1 commit
    • Michal 'vorner' Vaner's avatar
      Arguments: approvals · 1263f6a7
      Michal 'vorner' Vaner authored
      Add two new options to pkgupdate:
      --approve (to approve some identified plan of operations)
      --ask-approval (require that either --approve with corresponding ID is
        passed, or that a report of what would have been done is produced and
        further operation aborted).
  12. 08 Aug, 2016 2 commits
  13. 26 Jul, 2016 1 commit
  14. 25 Jul, 2016 1 commit
    • 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://
  15. 14 Jul, 2016 1 commit
    • Karel Koci's avatar
      Updater CLI arguments: Add error message operation · e04316f7
      Karel Koci authored
      Instead of using COT_CRASH for error message, we are now using new
      operation. This way we can print multiple error messages and at the end
      we don't have to use any dynamically allocated memory, because we are
      not merging constant strings with arguments any more, we print them as
      separate messages.
  16. 13 Jul, 2016 2 commits
    • Karel Koci's avatar
      Updater CLI arguments: Print error message from main · ba139c9d
      Karel Koci authored
      Error messages are now passed as part of COT_CRASH operation. This way
      function cmd_args_parse now has no side effects. Although this
      complicates error message generation process, we now prints all errors
      from main.
      Accepted map is now on stack so we don't have to remember to free it.
      And some code formatting...
    • Karel Koci's avatar
      Updater CLI arguments: cmd_args_parse no side effects · b642f20a
      Karel Koci authored
      Make cmd_args_parse to have no side effect, except of errors output.
      Allowed options are now passed to cmd_args_parse as array and function
      it self doesn't knows anything else about program it runs in.
  17. 12 Jul, 2016 2 commits
    • Karel Koci's avatar
      Updater CLI arguments: fix tests and rename one enum · 85e1ae29
      Karel Koci authored
      Arguments tests fixed to pass with changes from last commits. And added
      few more for long argument options. Also values in enum cmd_args_prg
      changed simply to be consistent with name of the enum it self.
    • Karel Koci's avatar
      Updater CLI arguments: hack current implementation · e1488440
      Karel Koci authored
      Current implementation of arguments is hacked to support multiple
      programs that shares same options. Now it also handles help and syslog
      options. We can chose which option applies to which program using bits
      in dedicated variable.
      Updater CLI arguments: help option exits with 0
      We should distinguish between truly wrong argument and just usage of
      --help|-h option. It should exit with nonzero exit code only when
      something went wrong and not every time we print help.
  18. 10 May, 2016 1 commit
  19. 14 Mar, 2016 1 commit
  20. 10 Mar, 2016 1 commit
  21. 01 Feb, 2016 1 commit
  22. 28 Jan, 2016 1 commit