Hello community,

here is the log from the commit of package yast2-add-on for openSUSE:Factory 
checked in at 2018-02-12 10:06:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-add-on (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-add-on.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-add-on"

Mon Feb 12 10:06:56 2018 rev:89 rq:574540 version:4.0.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-add-on/yast2-add-on.changes        
2018-01-17 21:43:01.870116613 +0100
+++ /work/SRC/openSUSE:Factory/.yast2-add-on.new/yast2-add-on.changes   
2018-02-12 10:06:59.003304391 +0100
@@ -1,0 +2,7 @@
+Wed Feb  7 15:48:56 UTC 2018 - mvid...@suse.com
+
+- Made the addon=url boot option work with a multi-product medium
+  such as the SLE-15 Packages DVD (FATE#324656)
+- 4.0.6
+
+-------------------------------------------------------------------

Old:
----
  yast2-add-on-4.0.5.tar.bz2

New:
----
  yast2-add-on-4.0.6.tar.bz2

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

Other differences:
------------------
++++++ yast2-add-on.spec ++++++
--- /var/tmp/diff_new_pack.d7Ckhu/_old  2018-02-12 10:06:59.751277434 +0100
+++ /var/tmp/diff_new_pack.d7Ckhu/_new  2018-02-12 10:06:59.755277289 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-add-on
-Version:        4.0.5
+Version:        4.0.6
 Release:        0
 Summary:        YaST2 - Add-On media installation code
 License:        GPL-2.0

++++++ yast2-add-on-4.0.5.tar.bz2 -> yast2-add-on-4.0.6.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-add-on-4.0.5/package/yast2-add-on.changes 
new/yast2-add-on-4.0.6/package/yast2-add-on.changes
--- old/yast2-add-on-4.0.5/package/yast2-add-on.changes 2018-01-08 
14:05:15.000000000 +0100
+++ new/yast2-add-on-4.0.6/package/yast2-add-on.changes 2018-02-09 
10:29:03.000000000 +0100
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Wed Feb  7 15:48:56 UTC 2018 - mvid...@suse.com
+
+- Made the addon=url boot option work with a multi-product medium
+  such as the SLE-15 Packages DVD (FATE#324656)
+- 4.0.6
+
+-------------------------------------------------------------------
 Mon Jan  8 10:57:47 UTC 2018 - lsle...@suse.cz
 
 - Fixed a crash when when adding an addon (bsc#1074766)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-add-on-4.0.5/package/yast2-add-on.spec 
new/yast2-add-on-4.0.6/package/yast2-add-on.spec
--- old/yast2-add-on-4.0.5/package/yast2-add-on.spec    2018-01-08 
14:05:15.000000000 +0100
+++ new/yast2-add-on-4.0.6/package/yast2-add-on.spec    2018-02-09 
10:29:03.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-add-on
-Version:        4.0.5
+Version:        4.0.6
 Release:        0
 Summary:        YaST2 - Add-On media installation code
 License:        GPL-2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-add-on-4.0.5/src/clients/inst_add-on.rb 
new/yast2-add-on-4.0.6/src/clients/inst_add-on.rb
--- old/yast2-add-on-4.0.5/src/clients/inst_add-on.rb   2018-01-08 
14:05:15.000000000 +0100
+++ new/yast2-add-on-4.0.6/src/clients/inst_add-on.rb   2018-02-09 
10:29:03.000000000 +0100
@@ -36,6 +36,7 @@
       Yast.import "URL"
 
       Yast.include self, "add-on/add-on-workflow.rb"
+      Yast.include self, "packager/repositories_include.rb"
 
       if AddOnProduct.skip_add_ons
         Builtins.y2milestone("Skipping add-ons (as requested before)")
@@ -68,18 +69,16 @@
           ret = NetworkSetupForAddons(missing_addons)
           return ret if Builtins.contains([:back, :abort], ret)
 
-          begin
-            tmp = Tempfile.new("cmdline-addons-")
-            # each add-on on a separate line
-            File.write(tmp.path, missing_addons.join("\n"))
-            # import the add-ons from the temporary file
-            AddOnProduct.AddPreselectedAddOnProducts(
-              [{ "file" => tmp.path, "type" => "plain" }]
-            )
-          ensure
-            tmp.close
-            tmp.unlink
+          plaindir, download, name, alias_ = false, true, "", ""
+          missing_addons.each do |url|
+            sources_before = Pkg.SourceGetCurrent(false)
+            Builtins.y2milestone("Sources before adding new one: %1", 
sources_before)
+
+            createSourceImpl(url, plaindir, download, name, alias_)
+
+            activate_addon_changes(sources_before)
           end
+          InstallProduct()
         end
       end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-add-on-4.0.5/src/include/add-on/add-on-workflow.rb 
new/yast2-add-on-4.0.6/src/include/add-on/add-on-workflow.rb
--- old/yast2-add-on-4.0.5/src/include/add-on/add-on-workflow.rb        
2018-01-08 14:05:15.000000000 +0100
+++ new/yast2-add-on-4.0.6/src/include/add-on/add-on-workflow.rb        
2018-02-09 10:29:03.000000000 +0100
@@ -73,64 +73,6 @@
       :next
     end
 
-    # Checks whether some network is available in the current moment,
-    # see the bug #170147 for more information.
-    def IsAnyNetworkAvailable
-      ret = false
-
-      command = "TERM=dumb /sbin/ip -o address show | grep inet | grep -v 
scope.host"
-      Builtins.y2milestone("Running %1", command)
-      cmd_run = Convert.to_map(
-        SCR.Execute(path(".target.bash_output"), command)
-      )
-      Builtins.y2milestone("Command returned: %1", cmd_run)
-
-      # command failed
-      if Ops.get_integer(cmd_run, "exit", -1) != 0
-        # some errors were there, we don't know the status, rather return that 
it's available
-        # `grep` also returns non zero exit code when there is nothing to do...
-        if Ops.get_string(cmd_run, "stdout", "") != ""
-          Builtins.y2error("Checking the network failed")
-          ret = true
-        end
-        # some devices are listed
-      elsif Ops.get_string(cmd_run, "stdout", "") != nil &&
-          Ops.get_string(cmd_run, "stdout", "") != "" &&
-          Ops.get_string(cmd_run, "stdout", "") != "\n"
-        ret = true
-      end
-
-      ret
-    end
-
-    # Returns begining string for source type
-    #
-    # @param [Symbol] source_type
-    # @return [String] url begins with...
-    def GetURLBeginsWith(source_type)
-      url = ""
-
-      if source_type == :ftp
-        url = "ftp://";
-      elsif source_type == :http
-        url = "http://";
-      elsif source_type == :https
-        url = "https://";
-      elsif source_type == :samba
-        url = "smb://"
-      elsif source_type == :nfs
-        url = "nfs://"
-      elsif source_type == :cd
-        url = "cd:///"
-      elsif source_type == :dvd
-        url = "dvd:///"
-      elsif source_type == :local_dir
-        url = "dir://"
-      end
-
-      url
-    end
-
     # used Add-Ons are stored in AddOnProduct::add_on_products
     # bnc #393620
     def AddAddOnToStore(src_id)
@@ -1284,15 +1226,6 @@
       nil
     end
 
-    # Logs wrong product with 'log_this' error and returns 'return_this'.
-    # Added because of bnc #459461
-    def LogWrongProduct(one_product, log_this, return_this)
-      one_product = deep_copy(one_product)
-      Builtins.y2error("Erroneous product: %1: %2", log_this, one_product)
-
-      return_this
-    end
-
     # Modifies repository info (adds some missing pieces).
     def AdjustRepositoryInfo(info)
       Builtins.foreach(


Reply via email to