GithubHelp home page GithubHelp logo

Comments (4)

bryteise avatar bryteise commented on June 23, 2024

There is a proposal to update swupd to output differently when running verify --install that could improve this without needing to modify ister. Another potential solution would be to have swupd output to a log and make the gui read that file for swupd progress updates.

from ister.

dedekind avatar dedekind commented on June 23, 2024

Did you notice that after one of my pull requests where the 'run_command()' function was reqorked' the swupd progress displaying has also been improved. Not that it is ideal, but it now does actually follow the progress somewhat.

The core of the problem with following is 'swupd' printing those dots without newline character. If that is imporved - ister's swupd following will automatically improve too.

Here is what is going on now.

  1. swupd prints some progres info to stderr in a reasonable way. Short lines followed by newline.
  2. In parallel swupd prints lots of dots to stdout.

When someone runs swupd from a terminal, stdout and stderr kind of get interleaved and end result looks OK.

But wen we run swupd from ister - we buffer collect full lines and print them. And the end result is that dots are delayed and the output is not so nice. We do not have to buffer, but the output looks very very ugly in this case.

IOW, I highly suspect this issue is not really an issue anymore.

from ister.

bryteise avatar bryteise commented on June 23, 2024

Ah indeed, thanks for bringing that to my attention, I'll try making a release today and see how it goes.

from ister.

bryteise avatar bryteise commented on June 23, 2024

So it looks like this is in pretty good shape aside as far as the ister side of things can help anyway. Calling this good then.

from ister.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.