1. 21 Mar, 2019 1 commit
    • Karel Koci's avatar
      doc: drop plan of package pre_* post_* function hooks · 7d0eeb4e
      Karel Koci authored
      This was never implemented and it somewhat questionable. It might be
      interesting in future to reintroduce it back and instead of having it as
      a lua function to have it as shell script (run by something like
      Why this is dropped is because it is questionable on how to implement
      it. It requires to run function from script that is no longer available
      potentially. It has to be run in transaction which has nothing to do
      with original configuration scripts. This was just stupid design idea
      and we should not implement it.
  2. 06 Mar, 2019 1 commit
  3. 28 Feb, 2019 4 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.
    • Karel Koci's avatar
      Add memory usage test bench · d3bd91ba
      Karel Koci authored
  4. 08 Feb, 2019 2 commits
  5. 06 Feb, 2019 3 commits
  6. 31 Jan, 2019 2 commits
  7. 30 Jan, 2019 3 commits
  8. 29 Jan, 2019 3 commits
  9. 28 Jan, 2019 5 commits
  10. 21 Jan, 2019 8 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 and Karel Koci's avatar Karel Koci committed
      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
      supervisor: update uci configuration for 4.x uci format · 0489976e
      Karel Koci authored and Karel Koci's avatar Karel Koci committed
    • Karel Koci's avatar
      Rename opkg-trans to pkgtransaction · 196761e1
      Karel Koci authored and Karel Koci's avatar Karel Koci committed
      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 and Karel Koci's avatar Karel Koci committed
      This file was here for backward compatibility. It is long enough that
      anyone should have already migrated away from it.
    • Karel Koci's avatar
      Move journal rescue init script from pkgupdate to supervisor · 9da06052
      Karel Koci authored and Karel Koci's avatar Karel Koci committed
      It makes much more sense to have it part of supervisor as a software
      that handles automatic updater execution.
    • Karel Koci's avatar
      localrepo: drop content2localrepo · ca80ded4
      Karel Koci authored and Karel Koci's avatar Karel Koci committed
      This script was required for migration between old versions of Turris OS
      3.x. This is no longer required on Turris OS 4.x.
    • Karel Koci's avatar
      Fix cppcheck warnings and that way tests · dc0d9766
      Karel Koci authored
      All warning in events are just suppressed because we are planning on
      dropping events.c anyway.
  11. 07 Jan, 2019 1 commit
  12. 12 Dec, 2018 5 commits
    • Karel Koci's avatar
      subprocess: fix problem with lost stdout content · 8502ac4b
      Karel Koci authored
      I originally was thinking that Lua is doing something nasty like
      duplicating original file descriptor for stdout but it turns out that
      exec was a culprit. For some reason a call to exec truncates (or at
      least removes unfinished line) from stdout. I have no idea why it
      behaves that way but adding flush just after callback (before exec)
      solves that problem and allows us to correctly use print in callback.
      The weird part is that the same thing does not happen with stderr but
      non the less I also added flush for it.
    • Karel Koci's avatar
      subprocess: mark some arguments as not possible to be NULL · a803ad41
      Karel Koci authored
      This also removes possibly hack to run C/Lua code in subprocess without
      providing command. It is overhead but it is more systematic to use
      'true' as a command instead of possibly in code unexpected value NULL.
    • Karel Koci's avatar
      subprocess: Use BUFSIZ in pipes read · 5a09ba46
      Karel Koci authored
      Instead of pretty small constant lets use system level compilation
      constant BUFSIZ. Thanks to that we should have buffer exactly matched to
      stdio buffer which should somewhat ensure better performance. It is
      minor thing but it is better to do it non the less.
    • Karel Koci's avatar
      subprocess: Increase logging about executed processes to debug · dc1bce93
      Karel Koci authored
      This also adds message about termination of subprocess.
    • Karel Koci's avatar
      logging: drop unneeded exit code · 48f9ef06
      Karel Koci authored
      I probably had some plan with it but I no longer remember what it was
      suppose to been. Instead I just drop it here. It can be reverted later
      if needed.
      This also correctly sets read field for cookie structure. This has no
      effect because we are not reading from it but just to be precise with
      our code we set it to know value NULL which means that read is not
  13. 11 Dec, 2018 2 commits