Hello community,

here is the log from the commit of package yast2 for openSUSE:Factory checked 
in at 2015-08-21 12:42:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2 (Old)
 and      /work/SRC/openSUSE:Factory/.yast2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2"

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2/yast2.changes      2015-08-15 
11:38:51.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.yast2.new/yast2.changes 2015-08-21 
12:42:45.000000000 +0200
@@ -1,0 +2,14 @@
+Thu Aug 20 08:18:47 UTC 2015 - lsle...@suse.cz
+
+- "yast2" script - handle also the reboot flag the same way as
+  the installation script (bsc#942461)
+- 3.1.147
+
+-------------------------------------------------------------------
+Wed Aug 19 07:44:30 UTC 2015 - mfi...@suse.com
+
+- bnc#941881
+  - displays hostname / domain as set in /etc/hostnmae
+- 3.1.146 
+
+-------------------------------------------------------------------

Old:
----
  yast2-3.1.145.tar.bz2

New:
----
  yast2-3.1.147.tar.bz2

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

Other differences:
------------------
++++++ yast2.spec ++++++
--- /var/tmp/diff_new_pack.x25jvS/_old  2015-08-21 12:42:46.000000000 +0200
+++ /var/tmp/diff_new_pack.x25jvS/_new  2015-08-21 12:42:46.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2
-Version:        3.1.145
+Version:        3.1.147
 Release:        0
 Url:            https://github.com/yast/yast-yast2
 

++++++ yast2-3.1.145.tar.bz2 -> yast2-3.1.147.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.145/library/types/src/modules/Hostname.rb 
new/yast2-3.1.147/library/types/src/modules/Hostname.rb
--- old/yast2-3.1.145/library/types/src/modules/Hostname.rb     2015-08-14 
10:21:10.000000000 +0200
+++ new/yast2-3.1.147/library/types/src/modules/Hostname.rb     2015-08-20 
12:26:09.000000000 +0200
@@ -37,6 +37,7 @@
 
       Yast.import "IP"
       Yast.import "String"
+      Yast.import "FileUtils"
 
       # i18n characters in domain names are still not allowed
       #
@@ -159,7 +160,7 @@
         SCR.Execute(path(".target.bash_output"), "hostname --fqdn")
       )
       if hostname_data.nil? || Ops.get_integer(hostname_data, "exit", -1) != 0
-        fqhostname = if SCR.Read(path(".target.stat"), "/etc/hostname").empty?
+        fqhostname = if FileUtils.Exists("/etc/hostname")
                        SCR.Read(path(".target.string"), "/etc/hostname")
                      else
                        ""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.145/library/types/test/Makefile.am 
new/yast2-3.1.147/library/types/test/Makefile.am
--- old/yast2-3.1.145/library/types/test/Makefile.am    2015-08-14 
10:21:10.000000000 +0200
+++ new/yast2-3.1.147/library/types/test/Makefile.am    2015-08-20 
12:26:09.000000000 +0200
@@ -1,6 +1,7 @@
 TESTS = \
   ip_test.rb \
   ipv4_netmask_test.rb \
+  hostname_test.rb \
   string_test.rb
 
 TEST_EXTENSIONS = .rb
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.145/library/types/test/hostname_test.rb 
new/yast2-3.1.147/library/types/test/hostname_test.rb
--- old/yast2-3.1.145/library/types/test/hostname_test.rb       1970-01-01 
01:00:00.000000000 +0100
+++ new/yast2-3.1.147/library/types/test/hostname_test.rb       2015-08-20 
12:26:09.000000000 +0200
@@ -0,0 +1,39 @@
+#!/usr/bin/env rspec
+
+require_relative "test_helper"
+
+require "yast"
+
+describe "Hostname#CurrentFQ" do
+  Yast.import "Hostname"
+  Yast.import "FileUtils"
+
+  let(:etc_hostname) { "etc.hostname.cz" }
+  let(:cmd_hostname) { "cmd.hostname.cz" }
+
+  it "returns output of hostname --fqdn if available" do
+    allow(Yast::SCR)
+      .to receive(:Execute)
+      .with(path(".target.bash_output"), "hostname --fqdn")
+      .and_return("stdout" => cmd_hostname, "exit" => 0)
+
+    expect(Yast::Hostname.CurrentFQ).to eq cmd_hostname
+  end
+
+  it "reads /etc/hostname when hostname --fqdn fails" do
+    allow(Yast::SCR)
+      .to receive(:Execute)
+      .with(path(".target.bash_output"), "hostname --fqdn")
+      .and_return(nil)
+    allow(Yast::SCR)
+      .to receive(:Read)
+      .with(path(".target.string"), "/etc/hostname")
+      .and_return(etc_hostname)
+    allow(Yast::FileUtils)
+      .to receive(:Exists)
+      .with("/etc/hostname")
+      .and_return(true)
+
+    expect(Yast::Hostname.CurrentFQ).to eq etc_hostname
+  end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-3.1.145/library/types/testsuite/tests/Address.out 
new/yast2-3.1.147/library/types/testsuite/tests/Address.out
--- old/yast2-3.1.145/library/types/testsuite/tests/Address.out 2015-08-14 
10:21:10.000000000 +0200
+++ new/yast2-3.1.147/library/types/testsuite/tests/Address.out 2015-08-20 
12:26:09.000000000 +0200
@@ -1,3 +1,4 @@
+Read   .target.tmpdir "/tmp"
 Dump   Address::Check
 Return false
 Return false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-3.1.145/library/types/testsuite/tests/Hostname.out 
new/yast2-3.1.147/library/types/testsuite/tests/Hostname.out
--- old/yast2-3.1.145/library/types/testsuite/tests/Hostname.out        
2015-08-14 10:21:10.000000000 +0200
+++ new/yast2-3.1.147/library/types/testsuite/tests/Hostname.out        
2015-08-20 12:26:09.000000000 +0200
@@ -1,3 +1,4 @@
+Read   .target.tmpdir "/tmp"
 Dump   Hostname::Check
 Return false
 Return false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-3.1.145/library/types/testsuite/tests/IPvalidation.out 
new/yast2-3.1.147/library/types/testsuite/tests/IPvalidation.out
--- old/yast2-3.1.145/library/types/testsuite/tests/IPvalidation.out    
2015-08-14 10:21:10.000000000 +0200
+++ new/yast2-3.1.147/library/types/testsuite/tests/IPvalidation.out    
2015-08-20 12:26:09.000000000 +0200
@@ -1,3 +1,4 @@
+Read   .target.tmpdir "/tmp"
 Return true
 Return false
 Return true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.145/library/types/testsuite/tests/URL.out 
new/yast2-3.1.147/library/types/testsuite/tests/URL.out
--- old/yast2-3.1.145/library/types/testsuite/tests/URL.out     2015-08-14 
10:21:10.000000000 +0200
+++ new/yast2-3.1.147/library/types/testsuite/tests/URL.out     2015-08-20 
12:26:09.000000000 +0200
@@ -1,3 +1,4 @@
+Read   .target.tmpdir "/tmp"
 Return $["fragment":"part", "host":"www.suse.cz", "pass":"pass", 
"path":"/path/index.html", "port":"80", "query":"question", "scheme":"http", 
"user":"name"]
 Return 
 Return 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-3.1.145/library/types/testsuite/tests/enumtype.out 
new/yast2-3.1.147/library/types/testsuite/tests/enumtype.out
--- old/yast2-3.1.145/library/types/testsuite/tests/enumtype.out        
2015-08-14 10:21:10.000000000 +0200
+++ new/yast2-3.1.147/library/types/testsuite/tests/enumtype.out        
2015-08-20 12:26:09.000000000 +0200
@@ -1,3 +1,4 @@
+Read   .target.tmpdir "/tmp"
 Return true
 Return false
 Return false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-3.1.145/library/types/testsuite/tests/regextype.out 
new/yast2-3.1.147/library/types/testsuite/tests/regextype.out
--- old/yast2-3.1.145/library/types/testsuite/tests/regextype.out       
2015-08-14 10:21:10.000000000 +0200
+++ new/yast2-3.1.147/library/types/testsuite/tests/regextype.out       
2015-08-20 12:26:09.000000000 +0200
@@ -1,2 +1,3 @@
+Read   .target.tmpdir "/tmp"
 Return true
 Return false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-3.1.145/library/types/testsuite/tests/undefinedtype.out 
new/yast2-3.1.147/library/types/testsuite/tests/undefinedtype.out
--- old/yast2-3.1.145/library/types/testsuite/tests/undefinedtype.out   
2015-08-14 10:21:10.000000000 +0200
+++ new/yast2-3.1.147/library/types/testsuite/tests/undefinedtype.out   
2015-08-20 12:26:09.000000000 +0200
@@ -1,2 +1,3 @@
+Read   .target.tmpdir "/tmp"
 Log    Request to validate unknown type blem
 Return false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.145/package/yast2.changes 
new/yast2-3.1.147/package/yast2.changes
--- old/yast2-3.1.145/package/yast2.changes     2015-08-14 10:21:10.000000000 
+0200
+++ new/yast2-3.1.147/package/yast2.changes     2015-08-20 12:26:09.000000000 
+0200
@@ -1,4 +1,18 @@
 -------------------------------------------------------------------
+Thu Aug 20 08:18:47 UTC 2015 - lsle...@suse.cz
+
+- "yast2" script - handle also the reboot flag the same way as
+  the installation script (bsc#942461)
+- 3.1.147
+
+-------------------------------------------------------------------
+Wed Aug 19 07:44:30 UTC 2015 - mfi...@suse.com
+
+- bnc#941881
+  - displays hostname / domain as set in /etc/hostnmae
+- 3.1.146 
+
+-------------------------------------------------------------------
 Mon Aug 10 07:37:45 UTC 2015 - mfi...@suse.com
 
 - bnc#916013
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.145/package/yast2.spec 
new/yast2-3.1.147/package/yast2.spec
--- old/yast2-3.1.145/package/yast2.spec        2015-08-14 10:21:10.000000000 
+0200
+++ new/yast2-3.1.147/package/yast2.spec        2015-08-20 12:26:09.000000000 
+0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2
-Version:        3.1.145
+Version:        3.1.147
 Release:        0
 Url:            https://github.com/yast/yast-yast2
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-3.1.145/scripts/yast2 
new/yast2-3.1.147/scripts/yast2
--- old/yast2-3.1.145/scripts/yast2     2015-08-14 10:21:10.000000000 +0200
+++ new/yast2-3.1.147/scripts/yast2     2015-08-20 12:26:09.000000000 +0200
@@ -431,6 +431,12 @@
        fi
     done
     snapshot_post $module
+
+    # check the reboot flag
+    if [ -f /var/lib/YaST2/reboot ];then
+        rm -f /var/lib/YaST2/reboot
+        /sbin/shutdown -r now
+    fi
 fi
 
 if [ "$UID" = 0 ]; then


Reply via email to