Hello community,
here is the log from the commit of package golang-googlecode-log4go for
openSUSE:Factory checked in at 2016-02-16 09:18:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golang-googlecode-log4go (Old)
and /work/SRC/openSUSE:Factory/.golang-googlecode-log4go.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "golang-googlecode-log4go"
Changes:
--------
---
/work/SRC/openSUSE:Factory/golang-googlecode-log4go/golang-googlecode-log4go.changes
2016-01-07 00:24:35.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.golang-googlecode-log4go.new/golang-googlecode-log4go.changes
2016-02-16 09:18:37.000000000 +0100
@@ -1,0 +2,6 @@
+Thu Feb 11 18:45:24 UTC 2016 - [email protected]
+
+- fix log4go_test.go
+ * add patch log4go_test-ConsoleLogWriter.patch
+
+-------------------------------------------------------------------
@@ -7 +13,3 @@
- + Console example should include Close method, otherwise you will not find
the output when you run this sample
+ + Console example should include Close method,
+ otherwise you will not find the output when
+ you run this sample
New:
----
log4go_test-ConsoleLogWriter.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ golang-googlecode-log4go.spec ++++++
--- /var/tmp/diff_new_pack.WjCmE7/_old 2016-02-16 09:18:37.000000000 +0100
+++ /var/tmp/diff_new_pack.WjCmE7/_new 2016-02-16 09:18:37.000000000 +0100
@@ -24,8 +24,10 @@
Group: Development/Languages/Golang
Url: https://github.com/alecthomas/log4go
Source: log4go-%{version}.tar.xz
+#PATCH-FIX-UPSTREAM fix tests to work for the ConsoleLogWriter
+Patch: log4go_test-ConsoleLogWriter.patch
#PATCH-FIX-UPSTREAM fix some errors in examples
-Patch: log4go-test-examples.patch
+Patch1: log4go-test-examples.patch
BuildRequires: golang-packaging
BuildRequires: xz
Provides: go-log4go = %{version}-%{release}
@@ -53,6 +55,7 @@
%prep
%setup -q -n log4go-%{version}
%patch -p1
+%patch1 -p1
# fix "main redeclared in this block" in %%check examples sub-directory.
pushd examples
++++++ log4go_test-ConsoleLogWriter.patch ++++++
Index: log4go-3.0.1+git20151210.8e9057c/log4go_test.go
===================================================================
--- log4go-3.0.1+git20151210.8e9057c.orig/log4go_test.go
+++ log4go-3.0.1+git20151210.8e9057c/log4go_test.go
@@ -89,12 +89,12 @@ var logRecordWriteTests = []struct {
Message: "message",
Created: now,
},
- Console: "[23:31:30 UTC 2009/02/13] [CRIT] message\n",
+ Console: "[23:31:30 UTC 2009/02/13] [CRIT] (source) message\n",
},
}
func TestConsoleLogWriter(t *testing.T) {
- console := make(ConsoleLogWriter)
+ console := NewConsoleLogWriter()
r, w := io.Pipe()
go console.run(w)
@@ -383,7 +383,7 @@ func TestXMLConfig(t *testing.T) {
}
// Make sure they're the right type
- if _, ok := log["stdout"].LogWriter.(ConsoleLogWriter); !ok {
+ if _, ok := log["stdout"].LogWriter.(*ConsoleLogWriter); !ok {
t.Fatalf("XMLConfig: Expected stdout to be ConsoleLogWriter,
found %T", log["stdout"].LogWriter)
}
if _, ok := log["file"].LogWriter.(*FileLogWriter); !ok {