Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2-journal for openSUSE:Factory checked in at 2022-07-21 11:32:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-journal (Old) and /work/SRC/openSUSE:Factory/.yast2-journal.new.1523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-journal" Thu Jul 21 11:32:35 2022 rev:20 rq:990110 version:4.5.1 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-journal/yast2-journal.changes 2022-04-14 17:25:20.863255132 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-journal.new.1523/yast2-journal.changes 2022-07-21 11:32:43.118913229 +0200 @@ -1,0 +2,8 @@ +Mon Jul 18 08:36:08 UTC 2022 - Martin Vidner <[email protected]> + +- Adapt to changed output of journalctl --list-boots, + avoid Internal Error with systemd-251 (bsc#1201504). +- Abbreviate numeric array journal entries (bsc#1200613) +- 4.5.1 + +------------------------------------------------------------------- Old: ---- yast2-journal-4.5.0.tar.bz2 New: ---- yast2-journal-4.5.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-journal.spec ++++++ --- /var/tmp/diff_new_pack.QOj5aX/_old 2022-07-21 11:32:43.662913697 +0200 +++ /var/tmp/diff_new_pack.QOj5aX/_new 2022-07-21 11:32:43.666913700 +0200 @@ -17,7 +17,7 @@ Name: yast2-journal -Version: 4.5.0 +Version: 4.5.1 Release: 0 URL: https://github.com/yast/yast-journal Summary: YaST2 - Reading of systemd journal ++++++ yast2-journal-4.5.0.tar.bz2 -> yast2-journal-4.5.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-journal-4.5.0/package/yast2-journal.changes new/yast2-journal-4.5.1/package/yast2-journal.changes --- old/yast2-journal-4.5.0/package/yast2-journal.changes 2022-04-12 13:35:11.000000000 +0200 +++ new/yast2-journal-4.5.1/package/yast2-journal.changes 2022-07-19 11:49:34.000000000 +0200 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Mon Jul 18 08:36:08 UTC 2022 - Martin Vidner <[email protected]> + +- Adapt to changed output of journalctl --list-boots, + avoid Internal Error with systemd-251 (bsc#1201504). +- Abbreviate numeric array journal entries (bsc#1200613) +- 4.5.1 + +------------------------------------------------------------------- Wed Apr 06 13:24:58 UTC 2022 - Ladislav Slez??k <[email protected]> - Bump version to 4.5.0 (bsc#1198109) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-journal-4.5.0/package/yast2-journal.spec new/yast2-journal-4.5.1/package/yast2-journal.spec --- old/yast2-journal-4.5.0/package/yast2-journal.spec 2022-04-12 13:35:11.000000000 +0200 +++ new/yast2-journal-4.5.1/package/yast2-journal.spec 2022-07-19 11:49:34.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2-journal -Version: 4.5.0 +Version: 4.5.1 Release: 0 Group: System/YaST License: GPL-2.0 or GPL-3.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-journal-4.5.0/src/lib/y2journal/entry_presenter.rb new/yast2-journal-4.5.1/src/lib/y2journal/entry_presenter.rb --- old/yast2-journal-4.5.0/src/lib/y2journal/entry_presenter.rb 2022-04-12 13:35:11.000000000 +0200 +++ new/yast2-journal-4.5.1/src/lib/y2journal/entry_presenter.rb 2022-07-19 11:49:34.000000000 +0200 @@ -23,9 +23,12 @@ module Y2Journal # Presenter for Entry adding useful methods for the dialogs class EntryPresenter < SimpleDelegator + include Yast::I18n + TIME_FORMAT = "%b %d %H:%M:%S".freeze def initialize(entry) + textdomain "journal" __setobj__(entry) end @@ -52,8 +55,15 @@ # Message string def message + msg = entry.message # bnc#941655 was caused by this field being an array in journalctl's json - entry.message.to_s + # Also big arrays are problematic + if msg.is_a?(Array) + # TRANSLATORS: this describes a non-displayable journal entry + format(_("[Blob data (%i bytes)]"), msg.size) + else + msg.to_s + end end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-journal-4.5.0/src/lib/y2journal/query.rb new/yast2-journal-4.5.1/src/lib/y2journal/query.rb --- old/yast2-journal-4.5.0/src/lib/y2journal/query.rb 2022-04-12 13:35:11.000000000 +0200 +++ new/yast2-journal-4.5.1/src/lib/y2journal/query.rb 2022-07-19 11:49:34.000000000 +0200 @@ -89,7 +89,8 @@ # * offset: offset relative to the current boot # * timestamps: timestamps of the first and last message for the boot def self.boots - Journalctl.new({ "list-boots" => nil }, []).output.lines.map do |line| + lines = Journalctl.new({ "list-boots" => nil, "quiet" => nil }, []).output.lines + lines.map do |line| # The 'journalctl --list-boots' output looks like this # (slightly stripped down, see test/data for full-length examples) # -1 a07ac0f240 Sun 2014-12-14 16:50:09 CET???Mon 2015-01-26 19:18:43 CET diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-journal-4.5.0/test/data/blob-entry.json new/yast2-journal-4.5.1/test/data/blob-entry.json --- old/yast2-journal-4.5.0/test/data/blob-entry.json 1970-01-01 01:00:00.000000000 +0100 +++ new/yast2-journal-4.5.1/test/data/blob-entry.json 2022-07-19 11:49:34.000000000 +0200 @@ -0,0 +1 @@ +{ "__CURSOR" : "s=223be9e29b3d41c39fd41a83c86854d7;i=13fbb9;b=d47a98bc838c4e3aa16b54d66c52d418;m=482d39ea;t=51d2b790f7a20;x=622c94c8c5df6113", "__REALTIME_TIMESTAMP" : "1439447435409952", "__MONOTONIC_TIMESTAMP" : "1210923498", "_BOOT_ID" : "d47a98bc838c4e3aa16b54d66c52d418", "_UID" : "1001", "_GID" : "100", "_MACHINE_ID" : "016627c3c4784cd4812d4b7e96a34226", "_HOSTNAME" : "antoine-laptop.lan", "_TRANSPORT" : "stdout", "PRIORITY" : "4", "SYSLOG_IDENTIFIER" : "org.gnome.zeitgeist.Engine", "_PID" : "4657", "MESSAGE" : [ 27, 91, 51, 49, 109, 91, 48, 54, 58, 51, 48, 58, 51, 53, 46, 52, 48, 57, 55, 54, 54, 32, 87, 65, 82, 78, 73, 78, 71, 93, 27, 91, 48, 109, 32, 122, 101, 105, 116, 103, 101, 105, 115, 116, 45, 100, 97, 101, 109, 111, 110, 46, 118, 97, 108, 97, 58, 52, 52, 57, 58, 32, 84, 104, 101, 32, 99, 111, 110, 110, 101, 99, 116, 105, 111, 110, 32, 105, 115, 32, 99, 108, 111, 115, 101, 100 ] } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-journal-4.5.0/test/entry_presenter_test.rb new/yast2-journal-4.5.1/test/entry_presenter_test.rb --- old/yast2-journal-4.5.0/test/entry_presenter_test.rb 2022-04-12 13:35:11.000000000 +0200 +++ new/yast2-journal-4.5.1/test/entry_presenter_test.rb 2022-07-19 11:49:34.000000000 +0200 @@ -22,9 +22,9 @@ describe Y2Journal::EntryPresenter do let(:entry) { Y2Journal::Entry.new(json_for("nfs")) } + subject { Y2Journal::EntryPresenter.new(entry) } describe "delegation" do - subject { Y2Journal::EntryPresenter.new(entry) } # Just some examples [:raw, :uid, :timestamp, :message].each do |method| @@ -44,4 +44,12 @@ expect(subject).to match(time) end end + + describe "#message" do + let(:entry) { Y2Journal::Entry.new(json_for("blob")) } + + it "abbreviates array blobs" do + expect(subject.message).to match(/Blob data/) + end + end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-journal-4.5.0/test/spec_helper.rb new/yast2-journal-4.5.1/test/spec_helper.rb --- old/yast2-journal-4.5.0/test/spec_helper.rb 2022-04-12 13:35:11.000000000 +0200 +++ new/yast2-journal-4.5.1/test/spec_helper.rb 2022-07-19 11:49:34.000000000 +0200 @@ -24,6 +24,9 @@ require "yast" require "yast/rspec" +# fail fast if a class does not declare textdomain (bsc#1130822) +ENV["Y2STRICTTEXTDOMAIN"] = "1" + RSpec.configure do |config| config.mock_with :rspec do |mocks| # If you misremember a method name both in code and in tests,
