1. 28 Jan, 2019 2 commits
    • Karel Koci's avatar
      Drop package content extra option · a8489ebe
      Karel Koci authored
      This was originaly introduced to allow local packages to be installed.
      It was later replaced with localrepo and was marked as obsoleted for
      long time.
      a8489ebe
    • Karel Koci's avatar
      Drop morpher · 6d3cad56
      Karel Koci authored
      Morpher is obsoleted for more than year and should not be used any more.
      We are doing now huge changes with approaching Turris OS 4.0 and that is
      best time to drop this.
      6d3cad56
  2. 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.
      91d4fd18
    • 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.
      3bc6a0c2
    • Karel Koci's avatar
      0489976e
    • 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.
      196761e1
    • 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.
      c836c1ab
    • Karel Koci's avatar
      Move journal rescue init script from pkgupdate to supervisor · 9da06052
      Karel Koci authored
      It makes much more sense to have it part of supervisor as a software
      that handles automatic updater execution.
      9da06052
    • Karel Koci's avatar
      localrepo: drop content2localrepo · ca80ded4
      Karel Koci authored
      This script was required for migration between old versions of Turris OS
      3.x. This is no longer required on Turris OS 4.x.
      ca80ded4
    • 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.
      dc0d9766
  3. 07 Jan, 2019 1 commit
  4. 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.
      8502ac4b
    • 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.
      a803ad41
    • 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.
      5a09ba46
    • Karel Koci's avatar
      subprocess: Increase logging about executed processes to debug · dc1bce93
      Karel Koci authored
      This also adds message about termination of subprocess.
      dc1bce93
    • 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
      available.
      48f9ef06
  5. 11 Dec, 2018 14 commits
  6. 10 Dec, 2018 2 commits
  7. 07 Dec, 2018 1 commit
  8. 30 Nov, 2018 1 commit
  9. 05 Nov, 2018 1 commit
  10. 08 Oct, 2018 2 commits
    • Karel Koci's avatar
      pkgupdate: drop base config · 1e6e803b
      Karel Koci authored
      This config is Turris OS specific and differs between OS versions.
      Because of that it was moved to turris-os-packages repository to
      updater-ng package.
      1e6e803b
    • Karel Koci's avatar
      gitignore: add compile_commands.json · da5fd5e9
      Karel Koci authored
      This file is common name of compilation commands database for clang set
      of tools. It can be used for completion with tools such as cquery. It
      can also be easily generated from running build using bear.
      da5fd5e9
  11. 27 Sep, 2018 1 commit
    • Karel Koci's avatar
      opkg-wrapper: allow ignoring custom feeds · 51224abd
      Karel Koci authored
      This adds ignore list for opkg-wrapper. It is implemented using Lua
      pattern matching function. If one of provided patters is matching given
      line in customfeeds.conf then feed from such line is ignored. Source for
      used patterns are files in a directory '/etc/updater/opkg-ignore'.
      Every line is a patterns with exception of those starting with '#',
      those are intended for commenting.
      
      There is a situation where custom feed is added and to allow it to be
      easily used it is added not only to opkg but also to updater. In such
      case such feed is pulled twice because of opkg-wrapper. This would not
      be huge problem unless there are some additional settings and both
      downloads are not in fact same. This can decrease security by going
      around of more secure updater's configuration and less secure URL from
      opkg-wrapper.
      
      Unfortunately we can't do this automatically because there is no access
      to already known repositories. And even if such access would existed we
      couldn't be sure that repository we are adding is not going to be added
      later then opkg-wrapper is executed. Because of that much more better
      solution is to have some sort of ignore list for opkg-wrapper.
      51224abd
  12. 18 Sep, 2018 1 commit
  13. 31 Aug, 2018 1 commit