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.
      9926663d
    • 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.
      a718f158
  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
        pkgtransaction
      
      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
      b93311ab
  3. 17 Jul, 2018 1 commit
  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. 26 Jun, 2018 1 commit
  6. 27 Feb, 2018 1 commit
  7. 21 Sep, 2017 1 commit
  8. 08 Aug, 2017 1 commit
  9. 04 Jul, 2017 2 commits
  10. 30 Jun, 2017 1 commit
    • Karel Koci's avatar
      Fix error nil indexed in planner · 6e4af634
      Karel Koci authored
      Modifiers don't have to be defined for all packages passed to sat_dep
      function and so we shouldn't expect to be. This ensures that.
      6e4af634
  11. 26 Jun, 2017 4 commits
    • Karel Koci's avatar
      Describe dependencies in planner using equivalency · c64255db
      Karel Koci authored
      Using only implication is problematic if we add negation to chain. In
      such case its meaning isn't that it implies negative value, but that it
      doesn't imply. That is problem if we use use negative dependencies. New
      approach uses equivalency instead of implications. We used equivalency
      originally because formulas added to sat solver as dependencies of one
      package would introduced limitation on package even if original package
      isn't selected and that is wrong. Now instead of that we use formulas
      activators. It's variable that ensures that if it isn't set than
      formula is always true. Activator is package group or candidate for
      which given dependency is build. This way we are able to ignore
      dependency formulas that don't have to be activated because we don't
      choose that package.
      c64255db
    • Karel Koci's avatar
      Multiple packages with Provides should be expected to be used · ee386e5c
      Karel Koci authored
      When we have two packages providing same package and both should be
      installed, than we should handle them the same way. Until now we have
      chosen first candidate that was selected and that was the one that we
      used. But that is problematic if we want to install both packages.
      
      This commit ensures that when we request a package that is provided by
      more than one other package than we pass modifier to both of those
      packages instead of random single one.
      ee386e5c
    • Karel Koci's avatar
      Don't expect candidates from other package group to be exclusive · e459518e
      Karel Koci authored
      Until now we were adding rule that only single candidate of given
      package can be installed at the time. But candidates added because of
      Provides directive shouldn't do that. That is completely separate
      package and we shouldn't be introducing any additional restriction.
      e459518e
    • Karel Koci's avatar
      Don't check version limitation with "Provides" candidates · 4944f52f
      Karel Koci authored
      If candidate isn't from given package group (was added because it
      provides that package) than we shouldn't be checking it against version
      limitation. Because what some version limitation says about some
      other package we don't know yet. If we specify version we should just
      ignore any candidate added using Provides.
      4944f52f
  12. 15 Jun, 2017 1 commit
  13. 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.
      78cfb3a5
  14. 19 May, 2017 1 commit
    • Karel Koci's avatar
      Copy critical from request to plan · 9b11c015
      Karel Koci authored
      Also this causes behavior that if package is requested critically and is
      provided by some other package then package that provides it is critical
      in plan.
      9b11c015
  15. 30 Mar, 2017 1 commit
    • Karel Koci's avatar
      Add trace log level · 3d38bf1c
      Karel Koci authored
      Some messages are debug messages were more like trace logs than real
      debug messages. So all messages dumping data send in program to
      terminal are now set to level TRACE (lower level than debug).
      3d38bf1c
  16. 24 Feb, 2017 1 commit
  17. 01 Feb, 2017 1 commit
  18. 27 Jan, 2017 1 commit
  19. 12 Jan, 2017 1 commit
  20. 07 Nov, 2016 1 commit
  21. 04 Nov, 2016 1 commit
  22. 10 Oct, 2016 1 commit
  23. 06 Oct, 2016 2 commits
  24. 03 Oct, 2016 2 commits
  25. 30 Sep, 2016 1 commit
    • Karel Koci's avatar
      Fix bug when exclusive version wanted to be selected · ea74de8c
      Karel Koci authored
      Introducing penalty variables, we changed all implications to some form
      of equivalences. This resulted in some case to unsatisfiable problem.
      Separating penalty dependencies tree from pkg dependency tree removes
      that.
      ea74de8c
  26. 26 Sep, 2016 5 commits
    • Karel Koci's avatar
      Add support for virtual packages · c2eedc6a
      Karel Koci authored
      Virtual packages can participate in dependency computation.
      c2eedc6a
    • Karel Koci's avatar
      Order remove requests in plan by dependencies · 3a03f539
      Karel Koci authored
      Requests with some dependency on other to be removed packages is now in
      plan before such packages.
      3a03f539
    • Karel Koci's avatar
      Don't expect remove action in filter_required · 1a4138be
      Karel Koci authored
      "remove" actions are no longer created in "required_pkgs". Only place
      where such actions can be created is now filter_required it self, so
      "remove" actions are not expected in its input any more and if they
      occur there, it's bug.
      1a4138be
    • 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
      implementation.
      a444adb6
    • 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
  27. 21 Sep, 2016 1 commit
  28. 19 Sep, 2016 2 commits