Mailinglist Archive: yast-devel (73 mails)

< Previous Next >
[yast-devel] Re: [yast-commit] r50245 - /trunk/country/language/src/language.ycp
  • From: Stanislav Visnovsky <visnov@xxxxxxx>
  • Date: Thu, 21 Aug 2008 10:36:51 +0200
  • Message-id: <200808211036.52092.visnov@xxxxxxx>
Hi Schubi!

IIRC the package installation callbacks and suseconfig call has support for
command line.

Lado?

Stano

Dňa Wednesday 20 August 2008 17:09:30 schubi2@xxxxxxxxxxxxxxxx ste napísal:
Author: schubi2
Date: Wed Aug 20 17:09:30 2008
New Revision: 50245

URL: http://svn.opensuse.org/viewcvs/yast?rev=50245&view=rev
Log:
Disable package installation and suseConfig in commandline mode cause it
has not mainWindow and produce an error message.

Modified:
trunk/country/language/src/language.ycp

Modified: trunk/country/language/src/language.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/country/language/src/language.yc
p?rev=50245&r1=50244&r2=50245&view=diff
===========================================================================
=== --- trunk/country/language/src/language.ycp (original)
+++ trunk/country/language/src/language.ycp Wed Aug 20 17:09:30 2008
@@ -80,29 +80,16 @@

Progress::NextStage ();

- boolean enough_space = true;
- if (Language::PackagesModified ())
- {
- if (Mode::commandline ())
- {
- // if not commandline, packages were already initialized in
- // select_language
- enough_space = Language::PackagesInit (
- splitstring (Language::languages, ","));
- }
- if (enough_space)
- {
- PackagesCommit ();
- }
- }
+ if (Language::PackagesModified () && !Mode::commandline ())
+ PackagesCommit ();

Progress::NextStage ();

GfxMenu::Update();

Progress::NextStage ();
-
- WFM::CallFunction ("inst_suseconfig", [ false, false ]);
+ if (!Mode::commandline ())
+ WFM::CallFunction ("inst_suseconfig", [ false, false ]);

return true;
}


--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages