Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package xmobar for openSUSE:Factory checked 
in at 2024-03-20 21:14:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xmobar (Old)
 and      /work/SRC/openSUSE:Factory/.xmobar.new.1905 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xmobar"

Wed Mar 20 21:14:38 2024 rev:29 rq:1157282 version:0.47.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/xmobar/xmobar.changes    2024-02-16 
21:42:00.896962698 +0100
+++ /work/SRC/openSUSE:Factory/.xmobar.new.1905/xmobar.changes  2024-03-20 
21:16:50.723551699 +0100
@@ -1,0 +2,7 @@
+Sun Mar  3 18:32:59 UTC 2024 - Peter Simons <psim...@suse.com>
+
+- Update xmobar to version 0.47.4.
+  Upstream has not updated the file "changelog.md" since the last
+  release.
+
+-------------------------------------------------------------------

Old:
----
  xmobar-0.47.3.tar.gz

New:
----
  xmobar-0.47.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xmobar.spec ++++++
--- /var/tmp/diff_new_pack.WitrV2/_old  2024-03-20 21:16:51.327574336 +0100
+++ /var/tmp/diff_new_pack.WitrV2/_new  2024-03-20 21:16:51.331574485 +0100
@@ -20,7 +20,7 @@
 %global pkgver %{pkg_name}-%{version}
 %bcond_with tests
 Name:           %{pkg_name}
-Version:        0.47.3
+Version:        0.47.4
 Release:        0
 Summary:        A Minimalistic Text Based Status Bar
 License:        BSD-3-Clause

++++++ xmobar-0.47.3.tar.gz -> xmobar-0.47.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xmobar-0.47.3/etc/xmobar.el 
new/xmobar-0.47.4/etc/xmobar.el
--- old/xmobar-0.47.3/etc/xmobar.el     2001-09-09 03:46:40.000000000 +0200
+++ new/xmobar-0.47.4/etc/xmobar.el     2001-09-09 03:46:40.000000000 +0200
@@ -1,6 +1,6 @@
 ;; xmobar.el --- Display xmobar text output -*- lexical-binding: t -*-
 
-;; Copyright 2022 jao <j...@gnu.org>
+;; Copyright 2022, 2024 jao <j...@gnu.org>
 ;; Version: 0.0.1
 ;; Package-Requires: ((emacs "28.1"))
 ;; Keywords: unix
@@ -98,28 +98,33 @@
 
 (defun xmobar--update (update)
   "Apply an UPDATE to the xmobar bar."
-  (when xmobar-mode
-    (let* ((str (funcall xmobar--colorize-fn update))
+  (when (and xmobar-mode update)
+    (let* ((str (or (funcall xmobar--colorize-fn update) ""))
            (strs (and xmobar-tab-split (split-string str xmobar-tab-split))))
       (setq xmobar-string (if strs (cadr strs) str)
             xmobar--left-string (or (car strs) "")
-            xmobar--len (+ (string-width xmobar--left-string)
-                           (string-width xmobar-string))))
+            xmobar--len (+ (string-width (or xmobar--left-string ""))
+                           (string-width (or xmobar-string "")))))
     (force-mode-line-update t)))
 
 (defun xmobar--process-filter (proc string)
   "Process output from the xmobar process."
-  (let ((buf (process-buffer proc)))
-    (when (buffer-live-p buf)
-      (with-current-buffer buf
-        ;; Write the input to the buffer (might be partial).
-        (save-excursion
-          (goto-char (process-mark proc))
-          (insert string)
-          (set-marker (process-mark proc) (point)))
-        (when (string-match-p "\n$" string)
-          (xmobar--update (buffer-substring (point-min) (- (point-max) 1)))
-          (delete-region (point-min) (point-max)))))))
+  (when string
+    (let ((buf (process-buffer proc)))
+      (condition-case err
+          (when (buffer-live-p buf)
+            (with-current-buffer buf
+              ;; Write the input to the buffer (might be partial).
+              (save-excursion
+                (goto-char (process-mark proc))
+                (insert string)
+                (set-marker (process-mark proc) (point)))
+              (when (string-match-p "\n$" string)
+                (xmobar--update (buffer-substring (point-min) (- (point-max) 
1)))
+                (delete-region (point-min) (point-max)))))
+        (error (message "Error running xmobar filter: %s"
+                        (error-message-string err))
+               (xmobar--stop))))))
 
 (defun xmobar--process-sentinel (proc status)
   "Handle events from the xmobar process (PROC).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/xmobar-0.47.3/src/Xmobar/Plugins/Monitors/Batt/Common.hs 
new/xmobar-0.47.4/src/Xmobar/Plugins/Monitors/Batt/Common.hs
--- old/xmobar-0.47.3/src/Xmobar/Plugins/Monitors/Batt/Common.hs        
2001-09-09 03:46:40.000000000 +0200
+++ new/xmobar-0.47.4/src/Xmobar/Plugins/Monitors/Batt/Common.hs        
2001-09-09 03:46:40.000000000 +0200
@@ -1,7 +1,7 @@
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  Plugins.Monitors.Batt.Common
--- Copyright   :  (c) 2010, 2011, 2012, 2013, 2015, 2016, 2018, 2019 Jose A 
Ortega
+-- Copyright   :  (c) 2010-2016, 2018, 2019, 2024 Jose A Ortega
 --                (c) 2010 Andrea Rossato, Petr Rockai
 -- License     :  BSD-style (see LICENSE)
 --
@@ -18,7 +18,7 @@
                                            , Status(..)
                                            , maybeAlert) where
 
-import System.Process (system)
+import System.Process (spawnCommand)
 import Control.Monad (unless, void)
 import Xmobar.Plugins.Monitors.Common
 
@@ -54,4 +54,4 @@
   case onLowAction opts of
     Nothing -> return ()
     Just x -> unless (isNaN left || actionThreshold opts < 100 * left)
-                $ void $ system x
+                $ void $ spawnCommand x
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xmobar-0.47.3/xmobar.cabal 
new/xmobar-0.47.4/xmobar.cabal
--- old/xmobar-0.47.3/xmobar.cabal      2001-09-09 03:46:40.000000000 +0200
+++ new/xmobar-0.47.4/xmobar.cabal      2001-09-09 03:46:40.000000000 +0200
@@ -1,5 +1,5 @@
 name:               xmobar
-version:            0.47.3
+version:            0.47.4
 homepage:           https://codeberg.org/xmobar/xmobar
 synopsis:           A Minimalistic Text Based Status Bar
 description:       Xmobar is a minimalistic text based status bar.

Reply via email to