Mailinglist Archive: zypp-devel (230 mails)

< Previous Next >
Re: [zypp-devel] progress
  • From: Duncan Mac-Vicar Prett <dmacvicar@xxxxxxx>
  • Date: Wed, 13 Feb 2008 15:15:24 +0100
  • Message-id: <47B2FB7C.9020900@xxxxxxx>
Stephan Kulow wrote:
Hi!

As you can see in my zypper.log, it takes 44 seconds for rpmdb2solv to finish,
but still my zypper stays silent on what is going on. Only after the process
finished, it will say "Reading installed packages", but that step takes exactly
no second, so it's pointless to have progress for that one ;(

Please move the progress kickoff to before rpmdb2solv is started.

Greetings, Stephan

2008-02-13 14:43:03 <0> desdemona(17411) [zypp] ExternalProgram.cc(start_program):172
Executing '/bin/sh' '-c' 'rpmdb2solv > "/var/cache/zypp/_rpm.solv"'
2008-02-13 14:43:03 <0> desdemona(17411) [zypp]
ExternalProgram.cc(start_program):283 pid 17490 launched
2008-02-13 14:43:47 <0> desdemona(17411) [zypp]
ExternalProgram.cc(checkStatus):336 pid 17490 successfully completed
2008-02-13 14:43:47 <0> desdemona(17411) [zypp::satpool]
PoolImpl.cc(setDirty):125 _createRepo @System
2008-02-13 14:43:47 <0> desdemona(17411) [zypp::satpool]
PoolImpl.cc(setDirty):125 _addSolv @System
2008-02-13 14:43:47 <1> desdemona(17411) [zypp] TargetImpl.cc(load):347 adding
/var/cache/zypp/_rpm.solv to pool(@System)Target loaded: 1427 resolvables

I think it is not about moving it, I think it is just a matter of setting progress to 0 before it starts so the callback gets emited once :-)
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
References