1. 19 Mar, 2019 2 commits
  2. 18 Mar, 2019 3 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.
    • Karel Koci's avatar
      Implement URI in C · 310154c9
      Karel Koci authored
      This is C implementation of URI with configuration inheritance and
      ability to have relative URIs.
  3. 07 Mar, 2019 11 commits
    • Karel Koci's avatar
      Fix subprocess function lvsubprocv · e0b80042
      Karel Koci authored
    • Karel Koci's avatar
      Add multiwrite · dcb7a8cf
      Karel Koci authored
      This is simple wrapper on top of multiple opened files. Idea is that you
      can open additional files and all subsequent writes are written to all
      of those files.
      The intended use is for collecting CA and CRL certificates to single
      file. In that implementation we can have multiple nodes reusing same
      base list of CAs and CRLs. To allows deallocation of deployed
      certificates we create files that can be read later when ever we detect
      such reuse. This simple code makes this operation as easy as writing to
      single file descriptor.
    • Karel Koci's avatar
      subprocess: suppress redefine warning · 96491a8d
      Karel Koci authored
    • Karel Koci's avatar
      Add new subprocess logging type USIGN · 2a84d8c1
      Karel Koci authored
      usign is command we have to run as there is no attached library
      implementation of given algorithm (at least to my knowledge). But its
      output should be mostly ignored because of that there is exception
      created for LST_USIGN for output printing level.
    • Karel Koci's avatar
      downloader: expand user agent to contain OS release name · 616234d7
      Karel Koci authored
      This should give us ability to debug problems with stucked versions.
    • 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
    • Karel Koci's avatar
      logging: solve some warning · 8fd3e47a
      Karel Koci authored
    • Karel Koci's avatar
      download: add function that overtakes buffer · 75342e2c
      Karel Koci authored
      This adds instance free function that instead of deallocating output
      buffer passes it to caller. This is handy if you want to preserve
      downloaded data but no longer need download instance or downloader as a
    • Karel Koci's avatar
      download: add possibility to download to temporally file · ed17313f
      Karel Koci authored
      This uses standard function mkstemp to generate random file name,
      anything else is same as in case of download_file.
      This also changes behaviour of download_file so that it truncates file.
      It makes much more sense because otherwise we would append data. If we
      ever need append data then it would make sense to have dedicated option
      for it.
    • Karel Koci's avatar
      Add tests for download manager · 29d7a781
      Karel Koci authored
      These tests check if we are able to download data from internet and if
      we are able to do certification pinning. There can be even more done but
      let's extend these tests on need to test bases.
    • Karel Koci's avatar
      Add download manager · d21eba3e
      Karel Koci authored
      This is extraction of existing code from events.c.
  4. 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.
  5. 08 Feb, 2019 2 commits
  6. 06 Feb, 2019 3 commits
  7. 31 Jan, 2019 2 commits
  8. 30 Jan, 2019 3 commits
  9. 29 Jan, 2019 2 commits
  10. 28 Jan, 2019 4 commits
  11. 21 Jan, 2019 5 commits
    • Karel Koci's avatar
      supervisor: update to allow autorun configuration · 91d4fd18
      Karel Koci authored
      This adds possibility to completely configure updater (autorun) trough
      supervisor. Advantage of this is that supervisor is the only place that
      defines uci configuration for updater (at least if we are talking about
      autorun) and because of that same API can be used on top of generally
      different configuration. This is handy because of back compatibility
      with Turris OS 3.x and introduced cleanup in Turris OS 4.x.
    • Karel Koci's avatar
      supervisor: rename userlists to pkglists · 3bc6a0c2
      Karel Koci authored
      This is much more appropriate name and this way we are able to integrate
      all Turris specific configuration to same section called turris.
    • Karel Koci's avatar
    • Karel Koci's avatar
      Rename opkg-trans to pkgtransaction · 196761e1
      Karel Koci authored
      This is huge change but it makes sense. Original name is now pretty
      confusing and it should be clear that this tool is part of updater-ng.
      This new name should signal that.
      This new name also contains whole word "transaction" so it should
      possibly be more clearer what it really does. This also adds comment
      that this tool is dangerous to play with.
    • Karel Koci's avatar
      Drop updater.sh · c836c1ab
      Karel Koci authored
      This file was here for backward compatibility. It is long enough that
      anyone should have already migrated away from it.