Hello community,
here is the log from the commit of package zypper-migration-plugin for
openSUSE:Leap:15.2 checked in at 2020-02-29 17:15:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/zypper-migration-plugin (Old)
and /work/SRC/openSUSE:Leap:15.2/.zypper-migration-plugin.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "zypper-migration-plugin"
Sat Feb 29 17:15:39 2020 rev:23 rq:779921 version:0.12.1580220831.7102be8
Changes:
--------
---
/work/SRC/openSUSE:Leap:15.2/zypper-migration-plugin/zypper-migration-plugin.changes
2020-01-15 16:32:58.292896524 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.zypper-migration-plugin.new.26092/zypper-migration-plugin.changes
2020-02-29 17:16:12.745013821 +0100
@@ -1,0 +2,14 @@
+Tue Jan 28 14:31:24 UTC 2020 - Vladimir Nadvornik <[email protected]>
+
+- version 0.12.1580220831.7102be8
+- check if snapper is configured (jira#SLE-7752)
+
+-------------------------------------------------------------------
+Wed Sep 5 10:59:58 UTC 2018 - [email protected]
+
+- 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.1580220831.7102be8.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ zypper-migration-plugin.spec ++++++
--- /var/tmp/diff_new_pack.qGKigP/_old 2020-02-29 17:16:13.317014999 +0100
+++ /var/tmp/diff_new_pack.qGKigP/_new 2020-02-29 17:16:13.333015032 +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.1529570802.4a668e3
+Version: 0.12.1580220831.7102be8
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.1580220831.7102be8.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.1580220831.7102be8/zypper-migration
--- old/zypper-migration-0.12.1529570802.4a668e3/zypper-migration
2018-06-21 10:46:42.000000000 +0200
+++ new/zypper-migration-0.12.1580220831.7102be8/zypper-migration
2020-01-28 15:13:51.000000000 +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
@@ -386,6 +396,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 +425,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