1. 26 Mar, 2021 1 commit
    • Karel Koci's avatar
      Replace ping with curl for network check · 76bd7cb7
      Karel Koci authored
      In reality we need to download files from repo.turris.cz so it makes
      sense to try perform real download rather than just ping.
      This also changes when we check for network. We check every time that is
      enabled. It makes sense as that way we can cover some temporally service
      dropouts even when not running from cron.
      There are other tiny tweaks such as that we no longer use name of
      package in package itself and rather import relatively.
  2. 04 Dec, 2020 1 commit
    • Karel Koci's avatar
      Version 1.4.3 · c6087fc5
      Karel Koci authored
      * `packages` module failure when there is uninstalled package in index
  3. 02 Dec, 2020 1 commit
    • Karel Koci's avatar
      Fix check for installed packages and removed package · 25574fdb
      Karel Koci authored
      Updater preserves removed packages in index if they at time of removal
      had some modified configuration files. Such packages are removed and
      should be reported as such. There is also no control file on filesystem.
      This fixes missing control file error by just not reading control file
      if it is not present. This has no impact as info is not available about
      that package and should not be required anyway.
      This also fixes installed method by properly checking status fields.
  4. 01 Dec, 2020 2 commits
  5. 27 Nov, 2020 1 commit
  6. 20 Nov, 2020 4 commits
    • Karel Koci's avatar
      Version 1.4.1 · 8845ef7d
      Karel Koci authored
      * Merged changes from 1.3.3 fixup release
    • Karel Koci's avatar
      Merge tag 'v1.3.3' · e5113c60
      Karel Koci authored
      Updater Supervisor version 1.3.3
      * exception raised when "approvals needed" was configured there was
        pending approval
    • Karel Koci's avatar
      Version 1.3.3 · d2535532
      Karel Koci authored
      * exception raised when "approvals needed" was configured there was
        pending approval
    • Karel Koci's avatar
      approvals: fix exception on approval required · de26ffde
      Karel Koci authored
      The autorun.auto_approve_time() returns None in case of approvals are
      required. Instead of checking if it is not None we checked old condition
      and that if it is larger than 0.
      This was casing update blockage in case approvals were configured as
  7. 06 Nov, 2020 10 commits
    • Karel Koci's avatar
      Version 1.4.0 · a157f5bc
      Karel Koci authored
      * msgtrace module with ability to provide info such as date of last
        check for updates or updater execution messages
      * packages module that allows read access of installed packages info
      * Option --no-network-fail to skip updater run when network connection
        is unavailable
      * Possibility to disable network test by setting zero
      * System shutdown is now retained till there is process holding opkg
      * argument --autorun to mark execution as automatic run to adhere
        autorun configuration
      * Disabled autorun now won't prevent from update, you have to use
        --autorun to get previous behavior
    • Karel Koci's avatar
      General code refactor · d04ed05a
      Karel Koci authored
      This removes some left over Python 2 compatibility code. It also makes
      sure that public modules do not "unpack" any modules. That is 'from foo
      import fee` is pretty much not used in public modules.
    • Karel Koci's avatar
      files/cron: incorporate latest changes · 2381b0ec
      Karel Koci authored
      This now has to use --autorun as it is running it automatically and also
      it is good to use --no-network-fail.
    • Karel Koci's avatar
      Add --autorun option and allow run even if autorun is disabled · 649023ed
      Karel Koci authored
      The original idea was to use autorun configuration to disable automatic
      updates. As it was implemented until now it was preventing execution of
      updates not just automatic but manual as well. The only option was to
      use pkgupdate directly. This should allow usage of supervisor not just
      when automatic updates are enabled.
    • Karel Koci's avatar
      Add module packages · 448f5954
      Karel Koci authored
      This module parses status file and control files of packages installed
      in system. In allows access to various fields.
      Primary usage is to check if given package is installed (that covers not
      just exactly name of package but also all packages providing it).
    • Karel Koci's avatar
      Add msgtrace module · 1daeb9ba
      Karel Koci authored
      This module is intended as "hack" to allow some state reporting of
      updater to other components. It is really hack as it relies on debug
      messages send to syslog.
      This implementation does not match every single message produced by
      updater. It only covers standard execution messages and only those with
      some sort of "benefit" to user.
    • Karel Koci's avatar
      Solidify public API with typing · e12ade9b
      Karel Koci authored
      This adds type hints on all public functions and methods.
    • Karel Koci's avatar
      Added option --no-network-fail · 772939b0
      Karel Koci authored
      This option should be used for example from cron to not spam pkgupdate
      when we know it is going to fail. It also prevents from spamming users
      because of failed update executions.
    • Karel Koci's avatar
      Move license to one central file · a5e0e6ca
      Karel Koci authored
    • Karel Koci's avatar
      files/immediate_reboot: block shutdown when updater or opkg is running · 753f01a3
      Karel Koci authored
      This protects against reboots breaking system if they happen in
      inappropriate time during update. It is not ultimate solution as user
      can simply unplug router but it helps in some cases.
  8. 15 Sep, 2020 1 commit
    • Karel Koci's avatar
      svupdater/branch: define default for mode · 71a3ea87
      Karel Koci authored
      Although mode should be always set it can be removed by user. We should
      not just fail with exception when we know that branch is the default
      mode. That means instead just fallback to branch.
  9. 17 Aug, 2020 2 commits
    • Karel Koci's avatar
      Version 1.3.2 · 7e3b9b0f
      Karel Koci authored
      * pkgupdate is now not run with `--task-log`
    • Karel Koci's avatar
      svupdater: do not run pkgupdate with --task-log · 254559fb
      Karel Koci authored
      This removes task log. I was used as kind of history of changes but was
      primarilly to observe long term execution. There are issues with it as
      that we do not manage that log correctly (it is not logrotated). It is
      also questionable how usable it is. One execution can be and is parsed
      from state-log. This makes this file almost without use and not needed
      for functionality at all. In the end making it adept for removal.
  10. 05 Jun, 2020 2 commits
    • Karel Koci's avatar
      Version 1.3.1 · d35c3038
      Karel Koci authored
      - Support for package lists filter based on board
      - New dependency is now distro
    • Karel Koci's avatar
      Add support for boards package lists filter · 18c6ce08
      Karel Koci authored
      This is filter for both package lists as well its options to skip them
      if they are not compatible with current board. This is primarily
      intended to support hardware specific extension in package lists.
      No change is required outside of updater-supervisor as package lists are
      just skipped and considered as not defined (not existing).
  11. 09 Apr, 2020 3 commits
    • Karel Koci's avatar
      Version 1.3.0 · ff3302c7
      Karel Koci authored
    • Štěpán Henek's avatar
      setup.py: add pyuci dependency · 064a68e4
      Štěpán Henek authored and Karel Koci's avatar Karel Koci committed
    • Karel Koci's avatar
      svupdater/lists: add support for labels · df1bde02
      Karel Koci authored
      Labels are new generic approach to existing official boolean option.
      This removes that option and instead introduces flags that can symbol
      This implementation is just extension of existing one so everything is
      till returned all at once. Labels can be matched by name between various
      pkglists but that has to be done by user. Here info for labels is
      duplicated to every occurrence of that label.
  12. 08 Mar, 2020 1 commit
  13. 20 Jan, 2020 1 commit
  14. 16 Jan, 2020 1 commit
  15. 11 Dec, 2019 3 commits
  16. 30 Oct, 2019 1 commit
  17. 24 Oct, 2019 1 commit
  18. 18 Oct, 2019 1 commit
  19. 14 Oct, 2019 1 commit
  20. 28 Aug, 2019 1 commit
  21. 26 Aug, 2019 1 commit