Mailinglist Archive: yast-devel (116 mails)

< Previous Next >
[yast-devel] Pkg::SourceFinishAll() - new sematics in 11.1
  • From: Ladislav Slezak <lslezak@xxxxxxx>
  • Date: Wed, 18 Jun 2008 09:40:21 +0200
  • Message-id: <4858BBE5.9030709@xxxxxxx>

Hi all,

I have changed semantics of Pkg::SourceFinishAll() call in

In the past it saved all known repositories and disabled them.

Due to bug #395738 (and similar #155459, #176013) we need to separate saving
and finishing the repositories. Another problem is that after
Pkg::SourceFinishAll() reloading was not possible - this was also fixed, the
sources are removed instead of disabling, so the next reload
(Pkg::SourceStartManager()) will be successful.

For YCP scripts that means that they should use Pkg::SourceSaveAll() when they
add a new repository. Pkg::SourceFinishAll() should be used when the module
finishes. (But all repositories are destroyed automatically in Pkg:: destructor,
so nothing wrong happens when it's missing.)

I have adapted and submitted all affected yast modules, just check your code
when you use Pkg::SourceFinishAll() if it is OK.


Best Regards

Ladislav Slez√°k
Yast Developer
SUSE LINUX, s.r.o. e-mail: lslezak@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups