Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package yast2-installation for 
openSUSE:Factory checked in at 2023-04-04 21:17:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-installation (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-installation.new.19717 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-installation"

Tue Apr  4 21:17:16 2023 rev:519 rq:1076973 version:4.6.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-installation/yast2-installation.changes    
2023-03-14 18:15:40.735422067 +0100
+++ 
/work/SRC/openSUSE:Factory/.yast2-installation.new.19717/yast2-installation.changes
 2023-04-04 21:17:20.736014164 +0200
@@ -1,0 +2,7 @@
+Mon Apr  3 12:04:23 UTC 2023 - Ladislav Slezák <lsle...@suse.com>
+
+- yupdate - improved Live ISO detection, added "--force" option
+  (related to bsc#1206927)
+- 4.6.2
+
+-------------------------------------------------------------------

Old:
----
  yast2-installation-4.6.1.tar.bz2

New:
----
  yast2-installation-4.6.2.tar.bz2

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

Other differences:
------------------
++++++ yast2-installation.spec ++++++
--- /var/tmp/diff_new_pack.whIBPq/_old  2023-04-04 21:17:21.480018908 +0200
+++ /var/tmp/diff_new_pack.whIBPq/_new  2023-04-04 21:17:21.484018933 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-installation
-Version:        4.6.1
+Version:        4.6.2
 Release:        0
 Summary:        YaST2 - Installation Parts
 License:        GPL-2.0-only

++++++ yast2-installation-4.6.1.tar.bz2 -> yast2-installation-4.6.2.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-installation-4.6.1/bin/yupdate 
new/yast2-installation-4.6.2/bin/yupdate
--- old/yast2-installation-4.6.1/bin/yupdate    2023-03-13 09:57:45.000000000 
+0100
+++ new/yast2-installation-4.6.2/bin/yupdate    2023-04-03 14:26:59.000000000 
+0200
@@ -584,14 +584,20 @@
       # the inst-sys contains the /.packages.initrd file with a list of 
packages
       return if File.exist?("/.packages.initrd")
 
-      # live medium uses overlay FS for the root
-      return if `mount`.match?(/^\w+ on \/ type overlay/)
+      mount_out = `mount`
+      # live medium uses overlay FS or device mapper for the root
+      if mount_out.match?(/^\w+ on \/ type overlay/) ||
+          mount_out.match?(/^\/dev\/mapper\/live-rw on \/ /)
+
+        return
+      end
 
       return if in_container?
 
       # exit immediately if running in an installed system
       warn "ERROR: This script can only work in the installation system 
(inst-sys), " \
            "live medium or in a container!"
+      warn "If you are sure it is OK to use the script add the --force option."
       exit 1
     end
 
@@ -620,16 +626,23 @@
   # parse the command line options
   class Options
     def self.parse(argv)
+      force = argv.include?("--force")
+      if force
+        argv.delete("--force")
+        # pass the force option to the executed scripts
+        ENV["YUPDATE_FORCE"] = "1"
+      end
+
       command = argv.shift
 
       case command
       when "version"
         VersionCommand.new
       when "overlay"
-        System.check!
+        System.check! unless force
         OverlayCommand.new(argv)
       when "patch"
-        System.check!
+        System.check! unless force
         PatchCommand.new(argv)
       when "servers"
         ServersCommand.new(argv)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-installation-4.6.1/package/yast2-installation.changes 
new/yast2-installation-4.6.2/package/yast2-installation.changes
--- old/yast2-installation-4.6.1/package/yast2-installation.changes     
2023-03-13 09:57:45.000000000 +0100
+++ new/yast2-installation-4.6.2/package/yast2-installation.changes     
2023-04-03 14:26:59.000000000 +0200
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Mon Apr  3 12:04:23 UTC 2023 - Ladislav Slezák <lsle...@suse.com>
+
+- yupdate - improved Live ISO detection, added "--force" option
+  (related to bsc#1206927)
+- 4.6.2
+
+-------------------------------------------------------------------
 Mon Mar 13 08:49:20 UTC 2023 - Ladislav Slezák <lsle...@suse.com>
 
 - Removed unnecessary executable flag from file security_proposal.rb
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-installation-4.6.1/package/yast2-installation.spec 
new/yast2-installation-4.6.2/package/yast2-installation.spec
--- old/yast2-installation-4.6.1/package/yast2-installation.spec        
2023-03-13 09:57:45.000000000 +0100
+++ new/yast2-installation-4.6.2/package/yast2-installation.spec        
2023-04-03 14:26:59.000000000 +0200
@@ -16,7 +16,7 @@
 #
 
 Name:           yast2-installation
-Version:        4.6.1
+Version:        4.6.2
 Release:        0
 Summary:        YaST2 - Installation Parts
 License:        GPL-2.0-only

Reply via email to