[zypp-devel] Re: Improvement of zypper
Hi Cecil, almost two months have passed since your last mail. I was pretty busy lately and could not catch up with all the mails, sorry for the delay. It is better to discuss these things on the zypp-devel mailing list, so i'm sending a copy there. Please reply to the list then. On 09/30/2009 02:16 PM, Cecil Westerhof wrote:
Jano,
Op woensdag 30-09-2009 om 12:18 uur [tijdzone +0200], schreef Jano Kupec:
I was the one 'complaining' about zypper. ;-] You said you could use some help with improving zypper. How could I help?
It depends on what you want and are able to do. There are lots of ways to help. From fixing bugs, to developing features, giving ideas how to do a new feature, testing & sending us feedback, updating the zypper wiki, translations, and various other little stuff.
Zypper is written in C++ and is stored in a git repository, so if you're familiar with these, you can jump into the development right away :O) Or you can propose how the overall install progress should look like - it's not easy to come up with some good looking and informative way to do this in a terminal, that would also be reasonably easy to implement (e.g. work with the limitation that only the very last line can be overwritten).
An enhancement would be to put on this line the amount of data fetched, the total amount to fetch and the estimated time remaining.
The percentage is already there and the amount to fetch is written in the line right above it. ETA is missing, true. But one thing is to know what we want to show, the other is HOW to show it :O) The line must not exceed 80 characters for example. Currently we show lines like: Retrieving package gvim-7.2-16.7.x86_64 (1/1), 1.0 MiB (2.3 MiB unpackged) Retrieving: gvim-7.2-16.7.x86_64.rpm [65% (146.6 KiB/s)] Could be something like this instead: Retrieving package some-1.1.x86_64, 100.3 KiB (800 KiB unpackged) Retrieving package gvim-7.2-16.7.x86_64, 1.0 MiB (2.3 MiB unpackged) 10 of 20 (50%, ETA: 2:36] 65% (146.6 KiB/s) ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ overall progress current package progress, right-aligned Similarly for 'Installing ...' Recently zypp(er) also allows to use several download modes, so this must of course work with all of them (--download {only, in-advance, in-heaps, as-needed (the traditional one)).
But if you're a good C++ developer, you can also hack libzypp - the library that powers both YaST and zypper. Let us know if something catches your interest.
That would maybe the best. I am a good C++ developer. Offcourse I have to get into the code.
Good!
And if there could come a way to let update with Yast work in milestones ...
I'm not sure what you mean here. -- cheers, jano Ján Kupec YaST team ---------------------------------------------------------(PGP)--- Key ID: 637EE901 Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901 ---------------------------------------------------------(IRC)--- Server: irc.freenode.net Nick: jniq Channels: #zypp #yast #suse #susecz ---------------------------------------------------------(EOF)---
participants (1)
-
Jano Kupec