# Patch from Stephan Sürken to fix default error pattern.
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=827339#34
# Closes: #827339

diff -Naur apt-dater-1.0.3.orig/src/keyfiles.c apt-dater-1.0.3/src/keyfiles.c
--- apt-dater-1.0.3.orig/src/keyfiles.c	2016-06-13 16:21:46.000000000 +0200
+++ apt-dater-1.0.3/src/keyfiles.c	2016-11-22 11:24:54.218754041 +0100
@@ -401,7 +401,8 @@
 
 #ifdef FEAT_HISTORY
     lcfg->record_history = getXPropBool(s_history, "record", TRUE);
-    lcfg->history_errpattern = getXPropStr(s_history, "err-pattern", "((?&lt;!no )error|(?&lt;!insserv: )warning|fail(ed)?)");
+    /* lcfg->history_errpattern = getXPropStr(s_history, "err-pattern", "((?&lt;!no )error|(?&lt;!insserv: )warning|fail(ed)?)"); */
+    lcfg->history_errpattern = getXPropStr(s_history, "err-pattern", "((?<!no )error|(?<!insserv: )warning|fail(ed)?|^\r*(E|W): )");
     lcfg->history_dir = getXPropStr(s_path, "history-dir", g_strdup_printf("%s/%s/history", g_get_user_data_dir(), PACKAGE));
 #endif
 
