commit zypper-migration-plugin for openSUSE:Factory
Hello community, here is the log from the commit of package zypper-migration-plugin for openSUSE:Factory checked in at 2020-05-29 21:24:24 Comparing /work/SRC/openSUSE:Factory/zypper-migration-plugin (Old) and /work/SRC/openSUSE:Factory/.zypper-migration-plugin.new.3606 (New) Package is "zypper-migration-plugin" Fri May 29 21:24:24 2020 rev:8 rq:810197 version:0.12.1590748670.86b0749 Changes: --- /work/SRC/openSUSE:Factory/zypper-migration-plugin/zypper-migration-plugin.changes 2020-01-31 23:56:26.419625136 +0100 +++ /work/SRC/openSUSE:Factory/.zypper-migration-plugin.new.3606/zypper-migration-plugin.changes 2020-05-29 21:39:09.146966955 +0200 @@ -1,0 +2,6 @@ +Fri May 29 10:38:57 UTC 2020 - Vladimir Nadvornik + +- version 0.12.1590748670.86b0749 +- make sure all release packages are installed (bsc#1171652) + +--- Old: zypper-migration-0.12.1580220831.7102be8.tar.xz New: zypper-migration-0.12.1590748670.86b0749.tar.xz Other differences: -- ++ zypper-migration-plugin.spec ++ --- /var/tmp/diff_new_pack.nyFlWt/_old 2020-05-29 21:39:09.602968313 +0200 +++ /var/tmp/diff_new_pack.nyFlWt/_new 2020-05-29 21:39:09.606968324 +0200 @@ -1,7 +1,7 @@ # # spec file for package zypper-migration-plugin # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,9 +17,9 @@ Name: zypper-migration-plugin -Version:0.12.1580220831.7102be8 +Version:0.12.1590748670.86b0749 Release:0 -Url:https://github.com/SUSE/zypper-migration +URL:https://github.com/SUSE/zypper-migration Requires: zypper >= 1.11.38 Requires: rubygem(%{rb_default_ruby_abi}:suse-connect) >= 0.3.10 BuildRoot: %{_tmppath}/%{name}-%{version}-build ++ zypper-migration-0.12.1580220831.7102be8.tar.xz -> zypper-migration-0.12.1590748670.86b0749.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zypper-migration-0.12.1580220831.7102be8/zypper-migration new/zypper-migration-0.12.1590748670.86b0749/zypper-migration --- old/zypper-migration-0.12.1580220831.7102be8/zypper-migration 2020-01-28 15:13:51.0 +0100 +++ new/zypper-migration-0.12.1590748670.86b0749/zypper-migration 2020-05-29 12:37:50.0 +0200 @@ -592,6 +592,29 @@ # end end +# make sure all release packages are installed (bsc#1171652) +if result + begin +system_products = SUSE::Connect::Migration::system_products + +system_products.each do |ident| + begin +# if a release package for registered product is missing -> try install it +SUSE::Connect::Migration.install_release_package(ident.identifier) + rescue => e +print "Can't install release package for registered product #{ident.identifier}\n" unless options[:quiet] +print "#{e.class}: #{e.message}\n" unless options[:quiet] + end +end + rescue => e +print "Can't determine the list of products installed after migration: #{e.class}: #{e.message}\n" +# the system has been sucessfully upgraded, zypper reported no error so +# the only way to get here is a scc problem - it is better to just exit +# +exit 1 + end +end + if !result print "\nPerforming repository rollback...\n" unless options[:quiet] begin
commit zypper-migration-plugin for openSUSE:Factory
Hello community, here is the log from the commit of package zypper-migration-plugin for openSUSE:Factory checked in at 2020-01-31 23:55:40 Comparing /work/SRC/openSUSE:Factory/zypper-migration-plugin (Old) and /work/SRC/openSUSE:Factory/.zypper-migration-plugin.new.26092 (New) Package is "zypper-migration-plugin" Fri Jan 31 23:55:40 2020 rev:7 rq:768332 version:0.12.1580220831.7102be8 Changes: --- /work/SRC/openSUSE:Factory/zypper-migration-plugin/zypper-migration-plugin.changes 2020-01-29 13:20:37.546238709 +0100 +++ /work/SRC/openSUSE:Factory/.zypper-migration-plugin.new.26092/zypper-migration-plugin.changes 2020-01-31 23:56:26.419625136 +0100 @@ -5 +5 @@ -- check if snapper is configured (jira#SLE-10175) +- check if snapper is configured (jira#SLE-7752) Other differences: --
commit zypper-migration-plugin for openSUSE:Factory
Hello community, here is the log from the commit of package zypper-migration-plugin for openSUSE:Factory checked in at 2020-01-29 13:19:48 Comparing /work/SRC/openSUSE:Factory/zypper-migration-plugin (Old) and /work/SRC/openSUSE:Factory/.zypper-migration-plugin.new.26092 (New) Package is "zypper-migration-plugin" Wed Jan 29 13:19:48 2020 rev:6 rq:768069 version:0.12.1580220831.7102be8 Changes: --- /work/SRC/openSUSE:Factory/zypper-migration-plugin/zypper-migration-plugin.changes 2018-09-07 15:39:52.482505841 +0200 +++ /work/SRC/openSUSE:Factory/.zypper-migration-plugin.new.26092/zypper-migration-plugin.changes 2020-01-29 13:20:37.546238709 +0100 @@ -1,0 +2,6 @@ +Tue Jan 28 14:31:24 UTC 2020 - Vladimir Nadvornik + +- version 0.12.1580220831.7102be8 +- check if snapper is configured (jira#SLE-10175) + +--- Old: zypper-migration-0.12.1536145027.be6a3dd.tar.xz New: zypper-migration-0.12.1580220831.7102be8.tar.xz Other differences: -- ++ zypper-migration-plugin.spec ++ --- /var/tmp/diff_new_pack.kCkRqI/_old 2020-01-29 13:20:39.226239567 +0100 +++ /var/tmp/diff_new_pack.kCkRqI/_new 2020-01-29 13:20:39.230239569 +0100 @@ -1,7 +1,7 @@ # # spec file for package zypper-migration-plugin # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,12 +12,12 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: zypper-migration-plugin -Version:0.12.1536145027.be6a3dd +Version:0.12.1580220831.7102be8 Release:0 Url:https://github.com/SUSE/zypper-migration Requires: zypper >= 1.11.38 ++ zypper-migration-0.12.1536145027.be6a3dd.tar.xz -> zypper-migration-0.12.1580220831.7102be8.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zypper-migration-0.12.1536145027.be6a3dd/zypper-migration new/zypper-migration-0.12.1580220831.7102be8/zypper-migration --- old/zypper-migration-0.12.1536145027.be6a3dd/zypper-migration 2018-09-05 12:57:07.0 +0200 +++ new/zypper-migration-0.12.1580220831.7102be8/zypper-migration 2020-01-28 15:13:51.0 +0100 @@ -99,6 +99,10 @@ system "sh /var/adm/backup/system-upgrade/repos.sh >/dev/null" end +def snapper_configured? + system "/usr/bin/snapper --no-dbus list-configs 2>/dev/null | grep -q \"^root \"" +end + def check_if_param(opt, message) unless opt print message @@ -234,6 +238,12 @@ end.parse! +if !snapper_configured? + options[:no_snapshots] = true + print "Snapper not configured\n" if options[:verbose] +end + + if options[:to_product] && !options[:root] && !options[:break_my_system] print "The --product option can only be used together with the --root option\n" exit 1
commit zypper-migration-plugin for openSUSE:Factory
Hello community, here is the log from the commit of package zypper-migration-plugin for openSUSE:Factory checked in at 2018-09-07 15:39:51 Comparing /work/SRC/openSUSE:Factory/zypper-migration-plugin (Old) and /work/SRC/openSUSE:Factory/.zypper-migration-plugin.new (New) Package is "zypper-migration-plugin" Fri Sep 7 15:39:51 2018 rev:5 rq:633463 version:0.12.1536145027.be6a3dd Changes: --- /work/SRC/openSUSE:Factory/zypper-migration-plugin/zypper-migration-plugin.changes 2018-06-22 13:35:48.369712467 +0200 +++ /work/SRC/openSUSE:Factory/.zypper-migration-plugin.new/zypper-migration-plugin.changes 2018-09-07 15:39:52.482505841 +0200 @@ -1,0 +2,8 @@ +Wed Sep 5 10:59:58 UTC 2018 - nadvor...@suse.com + +- version 0.12.1536145027.be6a3dd +- return non-zero exit code if there are possible migrations, but + none is mirrored on registration server (bsc#1107238) +- check for closed stdin (bsc#1100137) + +--- Old: zypper-migration-0.12.1529570802.4a668e3.tar.xz New: zypper-migration-0.12.1536145027.be6a3dd.tar.xz Other differences: -- ++ zypper-migration-plugin.spec ++ --- /var/tmp/diff_new_pack.tSw5rW/_old 2018-09-07 15:39:53.086505193 +0200 +++ /var/tmp/diff_new_pack.tSw5rW/_new 2018-09-07 15:39:53.086505193 +0200 @@ -17,7 +17,7 @@ Name: zypper-migration-plugin -Version:0.12.1529570802.4a668e3 +Version:0.12.1536145027.be6a3dd Release:0 Url:https://github.com/SUSE/zypper-migration Requires: zypper >= 1.11.38 ++ zypper-migration-0.12.1529570802.4a668e3.tar.xz -> zypper-migration-0.12.1536145027.be6a3dd.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zypper-migration-0.12.1529570802.4a668e3/zypper-migration new/zypper-migration-0.12.1536145027.be6a3dd/zypper-migration --- old/zypper-migration-0.12.1529570802.4a668e3/zypper-migration 2018-06-21 10:46:42.0 +0200 +++ new/zypper-migration-0.12.1536145027.be6a3dd/zypper-migration 2018-09-05 12:57:07.0 +0200 @@ -386,6 +386,10 @@ if migrations.length == 0 print "No migration available.\n\n" unless options[:quiet] + if migrations_unavailable.length > 0 +# no need to print a msg - unavailable migrations are listed above +exit 1 + end exit 0 end @@ -411,7 +415,12 @@ end while migration_num <= 0 || migration_num > migrations.length do print "[num/q]: " -choice = gets.chomp +choice = gets +if !choice + print "\nStandard input seems to be closed, please use '--non-interactive' option\n" unless options[:quiet] + exit 1 +end +choice.chomp! exit 0 if choice.eql?("q") || choice.eql?("Q") migration_num = choice.to_i end
commit zypper-migration-plugin for openSUSE:Factory
Hello community, here is the log from the commit of package zypper-migration-plugin for openSUSE:Factory checked in at 2018-06-22 13:35:46 Comparing /work/SRC/openSUSE:Factory/zypper-migration-plugin (Old) and /work/SRC/openSUSE:Factory/.zypper-migration-plugin.new (New) Package is "zypper-migration-plugin" Fri Jun 22 13:35:46 2018 rev:4 rq:618301 version:0.12.1529570802.4a668e3 Changes: --- /work/SRC/openSUSE:Factory/zypper-migration-plugin/zypper-migration-plugin.changes 2018-03-13 10:24:20.337124620 +0100 +++ /work/SRC/openSUSE:Factory/.zypper-migration-plugin.new/zypper-migration-plugin.changes 2018-06-22 13:35:48.369712467 +0200 @@ -1,0 +2,11 @@ +Thu Jun 21 08:48:18 UTC 2018 - nadvor...@suse.com + +- adjusted packaging of changes file + +--- +Tue Jun 12 13:20:24 CEST 2018 - ku...@suse.de + +- implement offline migration +- require SUSEConnect >= 0.3.10 + +--- Old: zypper-migration-0.11.1520597355.bcf74ad.tar.xz New: zypper-migration-0.12.1529570802.4a668e3.tar.xz Other differences: -- ++ zypper-migration-plugin.spec ++ --- /var/tmp/diff_new_pack.XPEsoK/_old 2018-06-22 13:35:49.133684225 +0200 +++ /var/tmp/diff_new_pack.XPEsoK/_new 2018-06-22 13:35:49.137684078 +0200 @@ -17,11 +17,11 @@ Name: zypper-migration-plugin -Version:0.11.1520597355.bcf74ad +Version:0.12.1529570802.4a668e3 Release:0 Url:https://github.com/SUSE/zypper-migration Requires: zypper >= 1.11.38 -Requires: rubygem(%{rb_default_ruby_abi}:suse-connect) >= 0.2.24 +Requires: rubygem(%{rb_default_ruby_abi}:suse-connect) >= 0.3.10 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros >= 5 BuildRequires: zypper >= 1.11.38 ++ _service ++ --- /var/tmp/diff_new_pack.XPEsoK/_old 2018-06-22 13:35:49.173682747 +0200 +++ /var/tmp/diff_new_pack.XPEsoK/_new 2018-06-22 13:35:49.177682599 +0200 @@ -2,9 +2,8 @@ https://github.com/SUSE/zypper-migration git -zypper-migration-plugin.changes zypper-migration-plugin.spec -0.11 +0.12 *.tar ++ zypper-migration-0.11.1520597355.bcf74ad.tar.xz -> zypper-migration-0.12.1529570802.4a668e3.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zypper-migration-0.11.1520597355.bcf74ad/zypper-migration new/zypper-migration-0.12.1529570802.4a668e3/zypper-migration --- old/zypper-migration-0.11.1520597355.bcf74ad/zypper-migration 2018-03-09 13:09:15.0 +0100 +++ new/zypper-migration-0.12.1529570802.4a668e3/zypper-migration 2018-06-21 10:46:42.0 +0200 @@ -99,6 +99,13 @@ system "sh /var/adm/backup/system-upgrade/repos.sh >/dev/null" end +def check_if_param(opt, message) + unless opt +print message +exit 1 + end +end + options = { :allow_vendor_change => false, @@ -117,6 +124,9 @@ :details => false, :download => nil, :no_snapshots => false, +:to_product => nil, +:break_my_system => false, +:selfupdate => true, :root => nil } @@ -199,6 +209,22 @@ options[:no_snapshots] = true end + opts.on("--break-my-system", "For testing and debugging purpose only.") do +options[:break_my_system] = true + end + + opts.on("--product PRODUCT", "Specify a product to which the system should be upgraded in offline mode.", + "Format: //") do |p| +check_if_param(p, 'Please provide a product identifier') +check_if_param((p =~ /\S+\/\S+\/\S+/), 'Please provide the product identifier in this format: ' \ + '//.') +options[:to_product] = p + end + + opts.on("--[no-]selfupdate", "Do not update the update stack first") do |s| +options[:selfupdate] = s + end + opts.on("--root DIR", "Operate on a different root directory") do |r| options[:root] = r SUSE::Connect::System.filesystem_root = r @@ -208,38 +234,45 @@ end.parse! -# Update stack can be outside of the to be updated system -cmd = "zypper " + - (options[:non_interactive] ? "--non-interactive " : "") + - (options[:verbose] ? "--verbose " : "") + - (options[:quiet] ? "--quiet " : "") + - "patch-check --updatestack-only" -print "\nExecuting '#{cmd}'\n\n" unless options[:quiet] -if !system cmd - if $?.exitstatus >= 100 -# install pending updates and restart -cmd = "zypper " + - (options[:non_interactive] ? "--non-interactive " : "") + - (options[:verbose] ? "--verbose " : "") + - (options[:quiet] ? "--quiet " : "") + - "--no-refresh patch
commit zypper-migration-plugin for openSUSE:Factory
Hello community, here is the log from the commit of package zypper-migration-plugin for openSUSE:Factory checked in at 2018-03-13 10:24:19 Comparing /work/SRC/openSUSE:Factory/zypper-migration-plugin (Old) and /work/SRC/openSUSE:Factory/.zypper-migration-plugin.new (New) Package is "zypper-migration-plugin" Tue Mar 13 10:24:19 2018 rev:3 rq:585919 version:0.11.1520597355.bcf74ad Changes: --- /work/SRC/openSUSE:Factory/zypper-migration-plugin/zypper-migration-plugin.changes 2018-01-26 13:39:45.192583907 +0100 +++ /work/SRC/openSUSE:Factory/.zypper-migration-plugin.new/zypper-migration-plugin.changes 2018-03-13 10:24:20.337124620 +0100 @@ -1,0 +2,6 @@ +Fri Mar 9 11:37:00 UTC 2018 - nadvor...@suse.com + +- version 0.11.1520597355.bcf74ad + - more changes to get --root working + +--- @@ -3,0 +10 @@ +- version 0.11.1516874532.fa20262 @@ -5 +11,0 @@ -- version 0.11 Old: zypper-migration-0.11.1516874532.fa20262.tar.xz New: zypper-migration-0.11.1520597355.bcf74ad.tar.xz Other differences: -- ++ zypper-migration-plugin.spec ++ --- /var/tmp/diff_new_pack.998nB0/_old 2018-03-13 10:24:21.521082201 +0100 +++ /var/tmp/diff_new_pack.998nB0/_new 2018-03-13 10:24:21.525082058 +0100 @@ -17,7 +17,7 @@ Name: zypper-migration-plugin -Version:0.11.1516874532.fa20262 +Version:0.11.1520597355.bcf74ad Release:0 Url:https://github.com/SUSE/zypper-migration Requires: zypper >= 1.11.38 @@ -27,7 +27,7 @@ BuildRequires: zypper >= 1.11.38 Source: zypper-migration-%{version}.tar.xz Summary:Zypper subcommand for online migration -License:GPL-2.0 +License:GPL-2.0-only Group: System/Packages BuildArch: noarch Supplements:packageand(zypper:SUSEConnect) ++ zypper-migration-0.11.1516874532.fa20262.tar.xz -> zypper-migration-0.11.1520597355.bcf74ad.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zypper-migration-0.11.1516874532.fa20262/zypper-migration new/zypper-migration-0.11.1520597355.bcf74ad/zypper-migration --- old/zypper-migration-0.11.1516874532.fa20262/zypper-migration 2018-01-25 11:02:12.0 +0100 +++ new/zypper-migration-0.11.1520597355.bcf74ad/zypper-migration 2018-03-09 13:09:15.0 +0100 @@ -81,7 +81,7 @@ end -def zypp_backup() +def zypp_backup(root) tarball_path = "/var/adm/backup/system-upgrade/repos.tar.gz" paths = [ "/etc/zypp/repos.d", @@ -89,7 +89,7 @@ "/etc/zypp/services.d" ] - create_tarball(tarball_path, '/', paths) + create_tarball(tarball_path, root, paths) script_path = "/var/adm/backup/system-upgrade/repos.sh" create_restore_script(script_path, tarball_path, paths) @@ -202,37 +202,27 @@ opts.on("--root DIR", "Operate on a different root directory") do |r| options[:root] = r SUSE::Connect::System.filesystem_root = r +# if we update a chroot system, we cannot create snapshots of it +options[:no_snapshots] = true end end.parse! +# Update stack can be outside of the to be updated system cmd = "zypper " + (options[:non_interactive] ? "--non-interactive " : "") + (options[:verbose] ? "--verbose " : "") + (options[:quiet] ? "--quiet " : "") + - " refresh" -print "\nExecuting '#{cmd}'\n\n" unless options[:quiet] -if !system cmd - print print "repository refresh failed, exiting\n" - exit 1 -end - -cmd = "zypper " + - (options[:root] ? "--root #{options[:root]} " : "") + - (options[:non_interactive] ? "--non-interactive " : "") + - (options[:verbose] ? "--verbose " : "") + - (options[:quiet] ? "--quiet " : "") + - " --no-refresh patch-check --updatestack-only" + "patch-check --updatestack-only" print "\nExecuting '#{cmd}'\n\n" unless options[:quiet] if !system cmd if $?.exitstatus >= 100 # install pending updates and restart cmd = "zypper " + - (options[:root] ? "--root #{options[:root]} " : "") + (options[:non_interactive] ? "--non-interactive " : "") + (options[:verbose] ? "--verbose " : "") + (options[:quiet] ? "--quiet " : "") + - " --no-refresh patch --updatestack-only" + "--no-refresh patch --updatestack-only" print "\nExecuting '#{cmd}'\n\n" unless options[:quiet] system cmd @@ -253,6 +243,19 @@ end print "\n" unless options[:quiet] +# This is only necessary, if we run with --root option +cmd = "zypper " + + (options[:root] ? "--root #{options[:root]} " : "") + + (options[:non_interactive] ? "--non-interactive " :
commit zypper-migration-plugin for openSUSE:Factory
Hello community, here is the log from the commit of package zypper-migration-plugin for openSUSE:Factory checked in at 2018-01-26 13:39:42 Comparing /work/SRC/openSUSE:Factory/zypper-migration-plugin (Old) and /work/SRC/openSUSE:Factory/.zypper-migration-plugin.new (New) Package is "zypper-migration-plugin" Fri Jan 26 13:39:42 2018 rev:2 rq:569533 version:0.11.1516874532.fa20262 Changes: --- /work/SRC/openSUSE:Factory/zypper-migration-plugin/zypper-migration-plugin.changes 2017-03-17 15:06:18.423874552 +0100 +++ /work/SRC/openSUSE:Factory/.zypper-migration-plugin.new/zypper-migration-plugin.changes 2018-01-26 13:39:45.192583907 +0100 @@ -1,0 +2,6 @@ +Thu Jan 25 09:54:05 UTC 2018 - nadvor...@suse.com + +- add --no-snapshots and --root options +- version 0.11 + +--- Old: zypper-migration-0.10.1488806253.1c712c3.tar.xz New: zypper-migration-0.11.1516874532.fa20262.tar.xz Other differences: -- ++ zypper-migration-plugin.spec ++ --- /var/tmp/diff_new_pack.kTAZmT/_old 2018-01-26 13:39:45.920549908 +0100 +++ /var/tmp/diff_new_pack.kTAZmT/_new 2018-01-26 13:39:45.928549535 +0100 @@ -1,7 +1,7 @@ # -# spec file for package zypper-migration +# spec file for package zypper-migration-plugin # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,12 +15,13 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: zypper-migration-plugin -Version:0.10.1488806253.1c712c3 -URL:https://github.com/SUSE/zypper-migration +Version:0.11.1516874532.fa20262 Release:0 -Requires: rubygem(%{rb_default_ruby_abi}:suse-connect) >= 0.2.24 +Url:https://github.com/SUSE/zypper-migration Requires: zypper >= 1.11.38 +Requires: rubygem(%{rb_default_ruby_abi}:suse-connect) >= 0.2.24 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros >= 5 BuildRequires: zypper >= 1.11.38 ++ _service ++ --- /var/tmp/diff_new_pack.kTAZmT/_old 2018-01-26 13:39:45.968547666 +0100 +++ /var/tmp/diff_new_pack.kTAZmT/_new 2018-01-26 13:39:45.968547666 +0100 @@ -4,7 +4,7 @@ git zypper-migration-plugin.changes zypper-migration-plugin.spec -0.10 +0.11 *.tar ++ zypper-migration-0.10.1488806253.1c712c3.tar.xz -> zypper-migration-0.11.1516874532.fa20262.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zypper-migration-0.10.1488806253.1c712c3/zypper-migration new/zypper-migration-0.11.1516874532.fa20262/zypper-migration --- old/zypper-migration-0.10.1488806253.1c712c3/zypper-migration 2017-03-06 14:17:33.0 +0100 +++ new/zypper-migration-0.11.1516874532.fa20262/zypper-migration 2018-01-25 11:02:12.0 +0100 @@ -115,7 +115,9 @@ :no_recommends => false, :replacefiles => false, :details => false, -:download => nil +:download => nil, +:no_snapshots => false, +:root => nil } STDOUT.sync = true @@ -193,6 +195,15 @@ options[:download] = "only" if d end + opts.on("--no-snapshots", "Do not create snapshots.") do +options[:no_snapshots] = true + end + + opts.on("--root DIR", "Operate on a different root directory") do |r| +options[:root] = r +SUSE::Connect::System.filesystem_root = r + end + end.parse! cmd = "zypper " + @@ -207,6 +218,7 @@ end cmd = "zypper " + + (options[:root] ? "--root #{options[:root]} " : "") + (options[:non_interactive] ? "--non-interactive " : "") + (options[:verbose] ? "--verbose " : "") + (options[:quiet] ? "--quiet " : "") + @@ -216,6 +228,7 @@ if $?.exitstatus >= 100 # install pending updates and restart cmd = "zypper " + + (options[:root] ? "--root #{options[:root]} " : "") + (options[:non_interactive] ? "--non-interactive " : "") + (options[:verbose] ? "--verbose " : "") + (options[:quiet] ? "--quiet " : "") + @@ -225,7 +238,10 @@ # stop infinite restarting # check that the patches were really installed -if ! system "zypper --non-interactive --quiet --no-refresh patch-check --updatestack-only > /dev/null" +cmd = "zypper " + + (options[:root] ? "--root #{options[:root]} " : "") + + "--non-interactive --quiet --no-refresh patch-check --updatestack-only > /dev/null" +if ! system cmd print "patch failed, exiting.\n"