1. 20 Nov, 2020 2 commits
    • Karel Koci's avatar
      tests/c/subprocess: fix potential test fail · 99177d34
      Karel Koci authored
      It is possible that if we try to immediately kill process that it won't
      make it to exec and that way kill might be caught by check library and
      reported as failure. By waiting at least short amount we pretty much
      make sure that exec happens and that we are killing sleep process rather
      our fork.
      99177d34
    • Karel Koci's avatar
      tests/c/download: decrease number of parallel downloads · 22bd00a4
      Karel Koci authored
      With four parallel jobs it is common that connection fails with OCSP
      response error. This seems to be an issue with some sort of
      rate-limiting in nginx (target web server) on OCSP stamping. It looks
      like as 3 is the magic number here for that.
      22bd00a4
  2. 10 Nov, 2020 2 commits
  3. 06 Nov, 2020 1 commit
    • Karel Koci's avatar
      Version 68.0.0 · cf313897
      Karel Koci authored
      Added
      * Queue messages for 'upgrade' and 'downgrade' now also print current
        version in square brackets.
      
      Changed
      * Default connection timeout for download was extended from one minute
        to ten minutes.
      
      Removed
      * Possibility to reboot immediatelly after package installation. Reboot
        after update is deemed sufficient.
      
      Fixed
      * Queue messages now state 'upgrade', 'downgrade' and 'reinstall'
        instead of original generic 'install'.
      cf313897
  4. 01 Nov, 2020 1 commit
    • Karel Koci's avatar
      lib/lua/updater: fix broken queue messages about upgrade and downgrade · baa57c58
      Karel Koci authored
      The code used for checking current system status was invalid and in
      result whole if condition was being skipped silently. This now enabled
      "upgrade", "downgrade" and "reinstall" messages instead of "install".
      
      This also adds current version to upgrades and downgrades of packages.
      This is info that is beneficial to know in most cases so it makes no
      sense to not show it when we have simple access to it.
      baa57c58
  5. 30 Oct, 2020 4 commits
    • Karel Koci's avatar
      lib/lua/transaction: fix previous commit · 75e168ef
      Karel Koci authored
      75e168ef
    • Karel Koci's avatar
      lib/lua/transaction: remove unused variable · b85324a2
      Karel Koci authored
      b85324a2
    • Karel Koci's avatar
      Remove immediate reboot · 7e559673
      Karel Koci authored
      This removes immediate reboot possibility from updater.
      
      Original reasoning was to reboot router because update of specific
      package broke system so much it can't continue. We never used it. It is
      also questionable how such package could break system in a way where
      reboot helps. That would have to be kernel module but having some core
      systems in module that we would have to do reboot and were unable to
      finish update seems like impossible. To finish update we in general need
      just filesystem and shell. Existing solution would not work with
      theoretical breakage of any of those anyway so it is pretty much useless
      feature. Anything this can solve can be also solved by reboot at the end
      of update.
      7e559673
    • Karel Koci's avatar
      lib/download: extend connection timeout to ten minutes · 37751919
      Karel Koci authored
      This should increase reliability on unstable network connection.
      
      One minute was was way short as it looks like. Ten minutes should be
      better, hopefully not the other way around (too long).
      37751919
  6. 28 Oct, 2020 1 commit
    • Josef Schlehofer's avatar
      Create notification: drop Czech language · 3823547d
      Josef Schlehofer authored
      We are now focusing primary on English and, in the future, this could be
      translated via Weblate. By removing Czech language this script does not
      longer prints warning about running in compatible mode
      3823547d
  7. 21 Oct, 2020 2 commits
    • Karel Koci's avatar
      Version 67.0.3 · eef34f86
      Karel Koci authored
      Changed
      * pkgupdate's conf.lua now loads scripts with Full security level
        instead of Local
      * libupdater is now versioned with release version (there is no API
        compatibility between versions)
      eef34f86
    • Karel Koci's avatar
      pkgupdate: run all conf.d scripts with Full privileges · 5e7ed7ae
      Karel Koci authored
      Original idea was to limit what scripts placed there can do but in the
      end it makes code of those scripts pretty much ugly as it then requires
      duplicate code and prevents usage of libraries.
      
      We lost nothing with Full security as Local allows running any arbitrary
      shell code.
      5e7ed7ae
  8. 22 Sep, 2020 2 commits
    • Karel Koci's avatar
      libupdater: version library · 6230b6ef
      Karel Koci authored
      We use -release because libupdater is technically binary compatible only
      with same version of binary tools. This means every build requires new
      version of library and vice versa.
      6230b6ef
    • Karel Koci's avatar
      tests/system: add test for configuration stealing · e2b064a9
      Karel Koci authored
      This adds additional test for configuration stealing. It checks that
      stealing between installed packages works. It also renames original test
      to more reflect that it tests only stealing when package is being
      replaced.
      e2b064a9
  9. 06 Aug, 2020 2 commits
    • Karel Koci's avatar
      Version 67.0.2 · 97bda434
      Karel Koci authored
      Fixed
      * Warning about cycles for packages providing and at the same time
        conflicting with some other package
      * Configure script now checks if uthash is available
      97bda434
    • Karel Koci's avatar
      lib: Fix invalid warning about cycles · 25c4013e
      Karel Koci authored
      The reason is that Conflicts are included as negative dependencies but
      to allows flow that package can Conflict and at the same time Provide
      specific package (to do effectively replacement) it is implemented as
      negative dependency for any version. Version dependencies are satisfied
      only by packages of exact name, not by provided packages (for obvious
      reasons as Provided packages do not have same versioning scheme).
      
      Fix is that we pass to planning function version limitation of
      dependency and plan package only if that is fulfilled by candidate
      selected for given group.
      25c4013e
  10. 04 Aug, 2020 1 commit
  11. 01 Jul, 2020 2 commits
    • Karel Koci's avatar
      Version 67.0.1.1 · 9aa7af2d
      Karel Koci authored
      This is release to only fix build because of missing submodule.
      
      Changed
      * Lunit submodule now points to new Github repository
      9aa7af2d
    • Karel Koci's avatar
      Update URL to Lunit submodule · 69e80be6
      Karel Koci authored
      Original repository seems to be no longer accessible. The webside links
      to github repo now so this is replacement to that repo.
      69e80be6
  12. 25 Jun, 2020 1 commit
  13. 24 Jun, 2020 1 commit
  14. 23 Jun, 2020 4 commits
    • Karel Koci's avatar
      src/lib/lua/planner: reinstall package if more than version not match · f850887a
      Karel Koci authored
      This extends list of fields checked for reinstall to not only Version
      but also to Architecture, LinkSignature, Depends, Conflicts, Provides.
      
      There are two reasons why we want to have these:
      
      First reason applies on Architecture, Depends, Conflicts and Provides.
      Those trigger update to get package information in sync with repository.
      Updater runs planning against repository so this has no effect but in
      the end if someone forgets to bump package but modifies dependencies for
      example then we reinstall package anyway.
      
      Second reason to reinstall package applies on LinkSignature and that is
      field inserted with hash generated from dynamic linker information
      collected for package. When this hash changes then link dependencies
      changed and even if version is same we have to reinstall such package as
      it most probably won't work with updated dependencies.
      
      As a tinny bonus logs now contain info about version or any other field
      if the differ and that way info about the reason to reinstall given
      package.
      f850887a
    • Karel Koci's avatar
      Version 67.0 · 236e08ce
      Karel Koci authored
      236e08ce
    • Karel Koci's avatar
      tests/c: do not for when using valgrind · dc787b37
      Karel Koci authored
      We are grabing scripts output including stderr and because of that we
      can't trace childs. Instead we make it so most of our code runs without
      fork.
      dc787b37
    • Karel Koci's avatar
      Revert "tests: trace children using valgrind" · 58ab9d4b
      Karel Koci authored
      This reverts commit cd44f638.
      
      We can't do this as we are checking output of childs in subprocess and
      valgrind taints stderr output with its output.
      58ab9d4b
  15. 22 Jun, 2020 3 commits
    • Karel Koci's avatar
      tests: trace children using valgrind · cd44f638
      Karel Koci authored
      cd44f638
    • Karel Koci's avatar
      lib: replace libb64 with openssl · 7381cbdc
      Karel Koci authored
      We have problem with libb64 on ARM (it effectively does not work).
      Updater is already linked against OpenSSL so why not use it for that as
      well. The API for it is not exactly clean so it is wrapped in its own
      file but otherwise it is clean solution as it removes dependency and
      reuses existing one.
      7381cbdc
    • Karel Koci's avatar
      src/lib/signature: improve signature file read · f0917aec
      Karel Koci authored
      There can be sunsequent lines although it is not part of standard.
      Accepting those and ignoring them fixes possible problem with invalid
      signature read as size might not match.
      f0917aec
  16. 15 Jun, 2020 1 commit
  17. 14 Jun, 2020 2 commits
  18. 12 Jun, 2020 1 commit
  19. 08 Jun, 2020 5 commits
  20. 01 Jun, 2020 1 commit
  21. 31 May, 2020 1 commit