Hello community,

here is the log from the commit of package yast2-services-manager for 
openSUSE:Factory checked in at 2014-08-27 07:45:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-services-manager (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-services-manager.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-services-manager"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/yast2-services-manager/yast2-services-manager.changes
    2014-07-30 07:34:51.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.yast2-services-manager.new/yast2-services-manager.changes
       2014-08-27 07:46:01.000000000 +0200
@@ -1,0 +2,14 @@
+Mon Aug 25 09:25:06 CEST 2014 - [email protected]
+
+- Autoyast: Moved minimal configuration to a central place in
+  inst_finish. (bnc#886464)
+- 3.1.30
+
+-------------------------------------------------------------------
+Tue Aug 19 10:45:25 CEST 2014 - [email protected]
+
+- Targets marked for translations, adjusting UI in a way that even
+  longer targets (translations) fit into it (bnc#892366)
+- 3.1.29
+
+-------------------------------------------------------------------

Old:
----
  yast2-services-manager-3.1.28.tar.bz2

New:
----
  yast2-services-manager-3.1.30.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-services-manager.spec ++++++
--- /var/tmp/diff_new_pack.1tp6KB/_old  2014-08-27 07:46:03.000000000 +0200
+++ /var/tmp/diff_new_pack.1tp6KB/_new  2014-08-27 07:46:03.000000000 +0200
@@ -24,7 +24,7 @@
 ######################################################################
 
 Name:           yast2-services-manager
-Version:        3.1.28
+Version:        3.1.30
 Release:        0
 
 BuildArch:      noarch

++++++ yast2-services-manager-3.1.28.tar.bz2 -> 
yast2-services-manager-3.1.30.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-services-manager-3.1.28/package/yast2-services-manager.changes 
new/yast2-services-manager-3.1.30/package/yast2-services-manager.changes
--- old/yast2-services-manager-3.1.28/package/yast2-services-manager.changes    
2014-07-29 08:57:44.000000000 +0200
+++ new/yast2-services-manager-3.1.30/package/yast2-services-manager.changes    
2014-08-25 10:32:20.000000000 +0200
@@ -1,4 +1,18 @@
 -------------------------------------------------------------------
+Mon Aug 25 09:25:06 CEST 2014 - [email protected]
+
+- Autoyast: Moved minimal configuration to a central place in
+  inst_finish. (bnc#886464)
+- 3.1.30
+
+-------------------------------------------------------------------
+Tue Aug 19 10:45:25 CEST 2014 - [email protected]
+
+- Targets marked for translations, adjusting UI in a way that even
+  longer targets (translations) fit into it (bnc#892366)
+- 3.1.29
+
+-------------------------------------------------------------------
 Mon Jul 28 15:42:04 CEST 2014 - [email protected]
 
 - Do not set default target while autoyast installation/update.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-services-manager-3.1.28/package/yast2-services-manager.spec 
new/yast2-services-manager-3.1.30/package/yast2-services-manager.spec
--- old/yast2-services-manager-3.1.28/package/yast2-services-manager.spec       
2014-07-29 08:57:44.000000000 +0200
+++ new/yast2-services-manager-3.1.30/package/yast2-services-manager.spec       
2014-08-25 10:32:20.000000000 +0200
@@ -24,7 +24,7 @@
 ######################################################################
 
 Name:           yast2-services-manager
-Version:        3.1.28
+Version:        3.1.30
 
 Release:        0
 BuildArch:      noarch
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-services-manager-3.1.28/src/clients/default_target_finish.rb 
new/yast2-services-manager-3.1.30/src/clients/default_target_finish.rb
--- old/yast2-services-manager-3.1.28/src/clients/default_target_finish.rb      
2014-07-29 08:57:44.000000000 +0200
+++ new/yast2-services-manager-3.1.30/src/clients/default_target_finish.rb      
2014-08-25 10:32:20.000000000 +0200
@@ -1,5 +1,3 @@
-require "installation/minimal_installation"
-
 module Yast
   import 'Directory'
   import 'Mode'
@@ -27,12 +25,10 @@
     end
 
     def info
-      minimal_inst = ::Installation::MinimalInstallation.instance.enabled?
       {
         'steps' => 1,
         'title' => _('Saving default systemd target...'),
-        'when'  => minimal_inst ? [] :
-          [ :installation, :live_installation, :autoinst ]
+        'when'  => [ :installation, :live_installation, :autoinst ]
       }
     end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-services-manager-3.1.28/src/clients/services-manager.rb 
new/yast2-services-manager-3.1.30/src/clients/services-manager.rb
--- old/yast2-services-manager-3.1.28/src/clients/services-manager.rb   
2014-07-29 08:57:44.000000000 +0200
+++ new/yast2-services-manager-3.1.30/src/clients/services-manager.rb   
2014-08-25 10:32:20.000000000 +0200
@@ -82,15 +82,34 @@
     success
   end
 
+  def system_targets_items
+    ServicesManagerTarget.all.collect do |target, target_def|
+      label = target_def[:description] || target
+      Item(Id(target), label, (target == ServicesManagerTarget.default_target))
+    end
+  end
+
   # Fills the dialog contents
   def adjust_dialog
+    system_targets = system_targets_items
+    # Translated target names are known in runtime only
+    max_target_length = system_targets.collect{|i| i[1].length}.max
+
     contents = VBox(
-      Left(ComboBox(
-        Id(Id::DEFAULT_TARGET),
-        Opt(:notify),
-        _('Default System &Target'),
-        []
-      )),
+      Left(
+        HSquash(
+          MinWidth(
+            # Additional space for UI features
+            max_target_length + 2,
+            ComboBox(
+              Id(Id::DEFAULT_TARGET),
+              Opt(:notify),
+              _('Default System &Target'),
+              system_targets
+            )
+          )
+        )
+      ),
       VSpacing(1),
       Table(
         Id(Id::SERVICES_TABLE),
@@ -118,7 +137,6 @@
     Wizard.SetAbortButton(:abort, Label.CancelButton)
 
     redraw_services
-    redraw_system_targets
   end
 
   # Redraws the services dialog
@@ -165,13 +183,7 @@
     end
   end
 
-  def redraw_system_targets
-    targets = ServicesManagerTarget.all.collect do |target, target_def|
-      label = target_def[:description] || target
-      Item(Id(target), label, (target == ServicesManagerTarget.default_target))
-    end
-    UI.ChangeWidget(Id(Id::DEFAULT_TARGET), :Items, targets)
-  end
+
 
   def handle_dialog
     new_default_target = UI.QueryWidget(Id(Id::DEFAULT_TARGET), :Value)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-services-manager-3.1.28/src/modules/services_manager_target.rb 
new/yast2-services-manager-3.1.30/src/modules/services_manager_target.rb
--- old/yast2-services-manager-3.1.28/src/modules/services_manager_target.rb    
2014-07-29 08:57:44.000000000 +0200
+++ new/yast2-services-manager-3.1.30/src/modules/services_manager_target.rb    
2014-08-25 10:32:20.000000000 +0200
@@ -22,6 +22,14 @@
         GRAPHICAL => N_("Graphical mode"),
         # Default systemd target (previously: runlevel 3) option #2
         MULTIUSER => N_("Text mode"),
+
+        # Systemd targets, bnc#892366
+        'emergency.target'          => N_("Emergency Mode"),
+        'graphical.target'          => N_("Graphical Interface"),
+        'initrd.target'             => N_("Initrd Default Target"),
+        'initrd-switch-root.target' => N_("Switch Root"),
+        'multi-user.target'         => N_("Multi-User System"),
+        'rescue.target'             => N_("Rescue Mode"),
       }
 
       def self.localize(target_name)
@@ -92,7 +100,7 @@
           :enabled => target.enabled?,
           :loaded  => target.loaded?,
           :active  => target.active?,
-          :description => target.description
+          :description => BaseTargets.localize("#{target.name}.target")
         }
       end
 

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to