commit zypper-lifecycle-plugin for openSUSE:Factory
Hello community, here is the log from the commit of package zypper-lifecycle-plugin for openSUSE:Factory checked in at 2020-09-29 19:05:00 Comparing /work/SRC/openSUSE:Factory/zypper-lifecycle-plugin (Old) and /work/SRC/openSUSE:Factory/.zypper-lifecycle-plugin.new.4249 (New) Package is "zypper-lifecycle-plugin" Tue Sep 29 19:05:00 2020 rev:6 rq:838482 version:0.6.1601367426.843fe7a Changes: --- /work/SRC/openSUSE:Factory/zypper-lifecycle-plugin/zypper-lifecycle-plugin.changes 2020-08-10 14:57:53.815997284 +0200 +++ /work/SRC/openSUSE:Factory/.zypper-lifecycle-plugin.new.4249/zypper-lifecycle-plugin.changes 2020-09-29 19:05:19.814025177 +0200 @@ -1,0 +2,7 @@ +Tue Sep 29 08:18:45 UTC 2020 - Vladimir Nadvornik + +- Version 0.6.1601367426.843fe7a +- Allow wildcard matching (jsc#SLE-14168) +- Implement successor handling (jsc#SLE-16251) + +--- Old: zypper-lifecycle-0.6.1596796104.87bdab7.tar.xz New: zypper-lifecycle-0.6.1601367426.843fe7a.tar.xz Other differences: -- ++ zypper-lifecycle-plugin.spec ++ --- /var/tmp/diff_new_pack.AAaaOr/_old 2020-09-29 19:05:20.486025855 +0200 +++ /var/tmp/diff_new_pack.AAaaOr/_new 2020-09-29 19:05:20.490025860 +0200 @@ -23,7 +23,7 @@ Name: zypper-lifecycle-plugin Url:https://github.com/SUSE/zypper-lifecycle -Version:0.6.1596796104.87bdab7 +Version:0.6.1601367426.843fe7a Release:0 Requires: zypper >= 1.13.10 BuildRoot: %{_tmppath}/%{name}-%{version}-build ++ zypper-lifecycle-0.6.1596796104.87bdab7.tar.xz -> zypper-lifecycle-0.6.1601367426.843fe7a.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zypper-lifecycle-0.6.1596796104.87bdab7/test-data/SLES.lifecycle new/zypper-lifecycle-0.6.1601367426.843fe7a/test-data/SLES.lifecycle --- old/zypper-lifecycle-0.6.1596796104.87bdab7/test-data/SLES.lifecycle 2020-08-07 12:28:24.0 +0200 +++ new/zypper-lifecycle-0.6.1601367426.843fe7a/test-data/SLES.lifecycle 2020-09-29 10:17:06.0 +0200 @@ -1,7 +1,36 @@ # test data for SLES product -# this should be installed in /var/lib/lifecycle/data/SLES.lifecycle -# format: name,version,date +# this should be installed in /usr/share/lifecycle/data/SLES.lifecycle +# format: name,version,date,successor +# successor is optional +# date can be empty if successor is specified + # version can contain wildcard character * aaa_base, 13.2*, 2016-05-05 -kernel-default, 3.12.51-60.25.1, 2016-05-01 + + +# Name can contain wildcard character * + +kernel-*, 3.12.51-60.25.1, 2016-05-01 + +# or it can be specified as regexp enclosed in / / +# See Ruby documentation for regexp syntax. +# Typically the regexp should match whole name, +# so ^ and $ should be used + +/^kernel-.*$/, 3.12.51-60.25.1, 2016-05-01 + +# Successor specifies a package that replaces the given package +# when available - jsc#SLE-16356 +# +# Successor use the same syntax as name, additionally +# it can reference matching groups from name with "<1>", "<2>" etc. +# the groups are generated from wildcards, in regexp they must be +# marked with ( ) + +# the following 4 lines are equivalent + +hdf5_*-gnu*-hpc, *, , hdf5_*-gnu<2>-hpc +hdf5_*-gnu*-hpc, *, , /^hdf5_(.*)-gnu<2>-hpc$/ +/^hdf5_.*-gnu(.*)-hpc$/, *, , hdf5_*-gnu<1>-hpc +/^hdf5_.*-gnu(.*)-hpc$/, *, , /^hdf5_(.*)-gnu<1>-hpc$/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zypper-lifecycle-0.6.1596796104.87bdab7/zypper-lifecycle new/zypper-lifecycle-0.6.1601367426.843fe7a/zypper-lifecycle --- old/zypper-lifecycle-0.6.1596796104.87bdab7/zypper-lifecycle 2020-08-07 12:28:24.0 +0200 +++ new/zypper-lifecycle-0.6.1601367426.843fe7a/zypper-lifecycle 2020-09-29 10:17:06.0 +0200 @@ -116,9 +116,9 @@ @installed_products[p[:name]] = p if p[:installed] == "true" end - package_list = Zypper::xml_call("--no-refresh -x se -s -t package", 'search-result/solvable-list') + @all_packages = Zypper::xml_call("--no-refresh -x se -s -t package", 'search-result/solvable-list') @installed_package = {} - package_list.each do |p| + @all_packages.each do |p| if p[:kind] == 'package' && p[:status] == 'installed' @installed_package[p[:name]] ||= [] @installed_package[p[:name]] << p @@ -144,7 +144,7 @@ end end - package_list.each do |p| + @all_packages.each do |p| p[:product] = product_by_repo[p[:repository]] end @@ -156,6 +156,8 @@ end def load_lifecycle_data() +
commit zypper-lifecycle-plugin for openSUSE:Factory
Hello community, here is the log from the commit of package zypper-lifecycle-plugin for openSUSE:Factory checked in at 2020-08-10 14:57:37 Comparing /work/SRC/openSUSE:Factory/zypper-lifecycle-plugin (Old) and /work/SRC/openSUSE:Factory/.zypper-lifecycle-plugin.new.3399 (New) Package is "zypper-lifecycle-plugin" Mon Aug 10 14:57:37 2020 rev:5 rq:824845 version:0.6.1596796104.87bdab7 Changes: --- /work/SRC/openSUSE:Factory/zypper-lifecycle-plugin/zypper-lifecycle-plugin.changes 2017-12-01 15:53:56.403385194 +0100 +++ /work/SRC/openSUSE:Factory/.zypper-lifecycle-plugin.new.3399/zypper-lifecycle-plugin.changes 2020-08-10 14:57:53.815997284 +0200 @@ -1,0 +2,8 @@ +Fri Aug 7 10:31:01 UTC 2020 - Vladimir Nadvornik + +- Version 0.6.1596796104.87bdab7 +- Handle zypper errors (bsc#1174369) +- Fix ruby warning (bsc#1173714) +- Handle all times in UTC (bsc#1143453) + +--- Old: zypper-lifecycle-0.6.1490613702.a925823.tar.xz New: zypper-lifecycle-0.6.1596796104.87bdab7.tar.xz Other differences: -- ++ zypper-lifecycle-plugin.spec ++ --- /var/tmp/diff_new_pack.V642cg/_old 2020-08-10 14:57:55.191998011 +0200 +++ /var/tmp/diff_new_pack.V642cg/_new 2020-08-10 14:57:55.195998013 +0200 @@ -1,7 +1,7 @@ # # spec file for package zypper-lifecycle-plugin # -# Copyright (c) 2017 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 @@ -23,7 +23,7 @@ Name: zypper-lifecycle-plugin Url:https://github.com/SUSE/zypper-lifecycle -Version:0.6.1490613702.a925823 +Version:0.6.1596796104.87bdab7 Release:0 Requires: zypper >= 1.13.10 BuildRoot: %{_tmppath}/%{name}-%{version}-build ++ _service ++ --- /var/tmp/diff_new_pack.V642cg/_old 2020-08-10 14:57:55.231998032 +0200 +++ /var/tmp/diff_new_pack.V642cg/_new 2020-08-10 14:57:55.231998032 +0200 @@ -2,7 +2,7 @@ https://github.com/SUSE/zypper-lifecycle git -zypper-lifecycle-plugin.changes +zypper-lifecycle-plugin.spec 0.6 ++ zypper-lifecycle-0.6.1490613702.a925823.tar.xz -> zypper-lifecycle-0.6.1596796104.87bdab7.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zypper-lifecycle-0.6.1490613702.a925823/zypper-lifecycle new/zypper-lifecycle-0.6.1596796104.87bdab7/zypper-lifecycle --- old/zypper-lifecycle-0.6.1490613702.a925823/zypper-lifecycle 2017-03-27 13:21:42.0 +0200 +++ new/zypper-lifecycle-0.6.1596796104.87bdab7/zypper-lifecycle 2020-08-07 12:28:24.0 +0200 @@ -12,6 +12,12 @@ module Zypper class << self + def print_messages(xml_doc) +xml_doc.root.elements.each("message") do |e| + print e[0].value, "\n" +end + end + def call(args, quiet = true) cmd = "zypper #{args}" output, error, status = Open3.capture3({ 'LC_ALL' => 'C' }, cmd) {|_stdin, stdout, _stderr, _wait_thr| stdout.read } @@ -21,9 +27,18 @@ # Catching interactive failures of zypper. --non-interactive always returns with exit code 0 here if !valid_exit_codes.include?(status.exitstatus) || error.include?('ABORT request') error = error.empty? ? output.strip : error.strip - print error -#e = (cmd.include? 'zypper') ? Connect::ZypperError.new(status.exitstatus, error) : Connect::SystemCallError -#raise e, error + begin +if error.start_with?(" true, :skip_lines => /^\s*#/ }) do |line| +CSV.foreach(file, :skip_blanks => true, :skip_lines => /^\s*#/ ) do |line| name, version, date = line.map(&:strip) date = Time.parse(date).strftime("%s") version_re = Regexp.new( '^' + Regexp.quote(version).gsub(/\\\*/, '.*') + '$') @@ -274,7 +289,7 @@ printf(ProductFormatStr, "Codestream: " + p[:xmlfwd_codestream_name], eol_string(p[:codestream_endoflife_time_t], vendor)) @printed_codestream = p[:xmlfwd_codestream_name] end -printf(ProductFormatStr, "" + p[:summary], eol_string(p[:endoflife_time_t], vendor)) +printf(ProductFormatStr, "Product: " + p[:summary], eol_string(p[:endoflife_time_t], vendor)) else printf(ProductFormatStr, p[:summary], eol_string(p[:endoflife_time_t], vendor)) @printed_codestream = nil @@ -428,6 +443,9 @@ end end +# handle all times in UTC (bsc#1143453) +ENV['TZ'] = "UTC" + options = {}
commit zypper-lifecycle-plugin for openSUSE:Factory
Hello community, here is the log from the commit of package zypper-lifecycle-plugin for openSUSE:Factory checked in at 2017-12-01 15:53:44 Comparing /work/SRC/openSUSE:Factory/zypper-lifecycle-plugin (Old) and /work/SRC/openSUSE:Factory/.zypper-lifecycle-plugin.new (New) Package is "zypper-lifecycle-plugin" Fri Dec 1 15:53:44 2017 rev:4 rq:546688 version:0.6.1490613702.a925823 Changes: --- /work/SRC/openSUSE:Factory/zypper-lifecycle-plugin/zypper-lifecycle-plugin.changes 2017-03-28 15:24:36.601275903 +0200 +++ /work/SRC/openSUSE:Factory/.zypper-lifecycle-plugin.new/zypper-lifecycle-plugin.changes 2017-12-01 15:53:56.403385194 +0100 @@ -1,0 +2,6 @@ +Thu Nov 23 13:54:37 UTC 2017 - rbr...@suse.com + +- Replace references to /var/adm/fillup-templates with new + %_fillupdir macro (boo#1069468) + +--- Other differences: -- ++ zypper-lifecycle-plugin.spec ++ --- /var/tmp/diff_new_pack.AODJO9/_old 2017-12-01 15:53:57.339351513 +0100 +++ /var/tmp/diff_new_pack.AODJO9/_new 2017-12-01 15:53:57.343351369 +0100 @@ -16,6 +16,11 @@ # +#Compat macro for new _fillupdir macro introduced in Nov 2017 +%if ! %{defined _fillupdir} + %define _fillupdir /var/adm/fillup-templates +%endif + Name: zypper-lifecycle-plugin Url:https://github.com/SUSE/zypper-lifecycle Version:0.6.1490613702.a925823 @@ -54,7 +59,7 @@ mkdir -p %{buildroot}/usr/lib/systemd/system install -m 644 lifecycle-report.service %{buildroot}%{_unitdir} install -m 644 lifecycle-report.timer %{buildroot}%{_unitdir} -install -D -m 644 sysconfig.lifecycle-report %{buildroot}/var/adm/fillup-templates/sysconfig.lifecycle-report +install -D -m 644 sysconfig.lifecycle-report %{buildroot}%{_fillupdir}/sysconfig.lifecycle-report %pre %service_add_pre lifecycle-report.service lifecycle-report.timer @@ -76,6 +81,6 @@ /var/lib/lifecycle %{_mandir}/man8/* %{_unitdir}/* -/var/adm/fillup-templates/* +%{_fillupdir}/* %changelog
commit zypper-lifecycle-plugin for openSUSE:Factory
Hello community, here is the log from the commit of package zypper-lifecycle-plugin for openSUSE:Factory checked in at 2017-03-28 15:22:59 Comparing /work/SRC/openSUSE:Factory/zypper-lifecycle-plugin (Old) and /work/SRC/openSUSE:Factory/.zypper-lifecycle-plugin.new (New) Package is "zypper-lifecycle-plugin" Tue Mar 28 15:22:59 2017 rev:3 rq:482868 version:0.6.1490613702.a925823 Changes: --- /work/SRC/openSUSE:Factory/zypper-lifecycle-plugin/zypper-lifecycle-plugin.changes 2017-03-10 21:46:12.419289551 +0100 +++ /work/SRC/openSUSE:Factory/.zypper-lifecycle-plugin.new/zypper-lifecycle-plugin.changes 2017-03-28 15:24:36.601275903 +0200 @@ -1,0 +2,5 @@ +Fri Mar 24 12:45:29 UTC 2017 - nadvor...@suse.com + +- do not show version number by default (fate#322212) + +--- Old: zypper-lifecycle-0.6.1488980214.576f7fb.tar.xz New: zypper-lifecycle-0.6.1490613702.a925823.tar.xz Other differences: -- ++ zypper-lifecycle-plugin.spec ++ --- /var/tmp/diff_new_pack.PEU45v/_old 2017-03-28 15:24:37.089206802 +0200 +++ /var/tmp/diff_new_pack.PEU45v/_new 2017-03-28 15:24:37.093206236 +0200 @@ -18,7 +18,7 @@ Name: zypper-lifecycle-plugin Url:https://github.com/SUSE/zypper-lifecycle -Version:0.6.1488980214.576f7fb +Version:0.6.1490613702.a925823 Release:0 Requires: zypper >= 1.13.10 BuildRoot: %{_tmppath}/%{name}-%{version}-build ++ zypper-lifecycle-0.6.1488980214.576f7fb.tar.xz -> zypper-lifecycle-0.6.1490613702.a925823.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zypper-lifecycle-0.6.1488980214.576f7fb/zypper-lifecycle new/zypper-lifecycle-0.6.1490613702.a925823/zypper-lifecycle --- old/zypper-lifecycle-0.6.1488980214.576f7fb/zypper-lifecycle 2017-03-08 14:36:54.0 +0100 +++ new/zypper-lifecycle-0.6.1490613702.a925823/zypper-lifecycle 2017-03-27 13:21:42.0 +0200 @@ -162,6 +162,7 @@ if version_re.match(p[:update_edition]) p[:update_package_eol] = date end +p[:version_specified] = version end end print "ok\n" if @verbose @@ -286,11 +287,15 @@ eol = eol_string(p[:eol], vendor) up = '' if p[:update_edition] -up = ", available update to #{p[:update_edition]}" +up = ", installed #{p[:edition]}, update available #{p[:update_edition]}" up_eol = '' up_eol = eol_string(p[:update_eol], vendor) if p[:update_eol] && p[:update_eol] < NaTS end - printf("%-55s %-40s %s\n", "#{p[:name]}-#{p[:edition]}", eol + up, up_eol) + name = p[:name] + if p[:version_specified] && p[:version_specified] != '*' +name += "-#{p[:version_specified]}" + end + printf("%-40s %-40s %s\n", name, eol + up, up_eol) end def report_products(products, msg) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zypper-lifecycle-0.6.1488980214.576f7fb/zypper-lifecycle-plugin.changes new/zypper-lifecycle-0.6.1490613702.a925823/zypper-lifecycle-plugin.changes --- old/zypper-lifecycle-0.6.1488980214.576f7fb/zypper-lifecycle-plugin.changes 2017-03-08 14:36:54.0 +0100 +++ new/zypper-lifecycle-0.6.1490613702.a925823/zypper-lifecycle-plugin.changes 2017-03-27 13:21:42.0 +0200 @@ -1,4 +1,9 @@ --- +Fri Mar 24 12:45:29 UTC 2017 - nadvor...@suse.com + +- do not show version number by default (fate#322212) + +--- Wed Mar 8 13:32:47 UTC 2017 - nadvor...@suse.com - fixed unhandled exception on empty package list (bsc#1028247#c1)
commit zypper-lifecycle-plugin for openSUSE:Factory
Hello community, here is the log from the commit of package zypper-lifecycle-plugin for openSUSE:Factory checked in at 2017-03-10 21:46:12 Comparing /work/SRC/openSUSE:Factory/zypper-lifecycle-plugin (Old) and /work/SRC/openSUSE:Factory/.zypper-lifecycle-plugin.new (New) Package is "zypper-lifecycle-plugin" Fri Mar 10 21:46:12 2017 rev:2 rq:477783 version:0.6.1488980214.576f7fb Changes: --- /work/SRC/openSUSE:Factory/zypper-lifecycle-plugin/zypper-lifecycle-plugin.changes 2017-03-04 16:53:42.543655118 +0100 +++ /work/SRC/openSUSE:Factory/.zypper-lifecycle-plugin.new/zypper-lifecycle-plugin.changes 2017-03-10 21:46:12.419289551 +0100 @@ -1,0 +2,5 @@ +Wed Mar 8 13:32:47 UTC 2017 - nadvor...@suse.com + +- fixed unhandled exception on empty package list (bsc#1028247#c1) + +--- Old: zypper-lifecycle-0.6.1488461980.7e06288.tar.xz New: zypper-lifecycle-0.6.1488980214.576f7fb.tar.xz Other differences: -- ++ zypper-lifecycle-plugin.spec ++ --- /var/tmp/diff_new_pack.y878cv/_old 2017-03-10 21:46:13.055199359 +0100 +++ /var/tmp/diff_new_pack.y878cv/_new 2017-03-10 21:46:13.059198791 +0100 @@ -1,7 +1,7 @@ # -# spec file for package zypper-lifecycle +# spec file for package zypper-lifecycle-plugin # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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,9 +15,10 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: zypper-lifecycle-plugin -URL:https://github.com/SUSE/zypper-lifecycle -Version:0.6.1488461980.7e06288 +Url:https://github.com/SUSE/zypper-lifecycle +Version:0.6.1488980214.576f7fb Release:0 Requires: zypper >= 1.13.10 BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -55,7 +56,6 @@ install -m 644 lifecycle-report.timer %{buildroot}%{_unitdir} install -D -m 644 sysconfig.lifecycle-report %{buildroot}/var/adm/fillup-templates/sysconfig.lifecycle-report - %pre %service_add_pre lifecycle-report.service lifecycle-report.timer ++ zypper-lifecycle-0.6.1488461980.7e06288.tar.xz -> zypper-lifecycle-0.6.1488980214.576f7fb.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zypper-lifecycle-0.6.1488461980.7e06288/zypper-lifecycle new/zypper-lifecycle-0.6.1488980214.576f7fb/zypper-lifecycle --- old/zypper-lifecycle-0.6.1488461980.7e06288/zypper-lifecycle 2017-03-02 14:39:40.0 +0100 +++ new/zypper-lifecycle-0.6.1488980214.576f7fb/zypper-lifecycle 2017-03-08 14:36:54.0 +0100 @@ -395,9 +395,9 @@ print "\nNo products whose support ends before #{date_str}.\n" end packages = @installed_package.values.flatten.select {|p| p[:eol] && p[:eol] <= date_ts } + dif_packages = packages.select {|p| (p[:package_eol] || p[:update_edition]) } + print_packages = dif_packages.select {|p| !p[:already_reported] } if packages.length > 0 -dif_packages = packages.select {|p| (p[:package_eol] || p[:update_edition]) } -print_packages = dif_packages.select {|p| !p[:already_reported] } if print_packages.length > 0 print "\nPackage end of support before #{date_str}:\n" print_packages.sort_by.with_index { |p, idx| [p[:eol], idx] }.each do |p| diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zypper-lifecycle-0.6.1488461980.7e06288/zypper-lifecycle-plugin.changes new/zypper-lifecycle-0.6.1488980214.576f7fb/zypper-lifecycle-plugin.changes --- old/zypper-lifecycle-0.6.1488461980.7e06288/zypper-lifecycle-plugin.changes 2017-03-02 14:39:40.0 +0100 +++ new/zypper-lifecycle-0.6.1488980214.576f7fb/zypper-lifecycle-plugin.changes 2017-03-08 14:36:54.0 +0100 @@ -1,4 +1,9 @@ --- +Wed Mar 8 13:32:47 UTC 2017 - nadvor...@suse.com + +- fixed unhandled exception on empty package list (bsc#1028247#c1) + +--- Thu Mar 2 13:34:03 UTC 2017 - nadvor...@suse.com - version 0.6