Hello community, here is the log from the commit of package telepathy-idle for openSUSE:Factory checked in at 2020-03-16 10:15:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/telepathy-idle (Old) and /work/SRC/openSUSE:Factory/.telepathy-idle.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "telepathy-idle" Mon Mar 16 10:15:47 2020 rev:30 rq:784408 version:0.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/telepathy-idle/telepathy-idle.changes 2018-03-08 10:49:37.866332597 +0100 +++ /work/SRC/openSUSE:Factory/.telepathy-idle.new.3160/telepathy-idle.changes 2020-03-16 10:16:05.927532503 +0100 @@ -1,0 +2,7 @@ +Sat Feb 22 13:28:52 UTC 2020 - Bjørn Lie <bjorn....@gmail.com> + +- Add telepathy-idle-dont-bling-non-bling.patch: ctcp: Don't bling + the non-bling. +- Modernize spec, add upstream URL. + +------------------------------------------------------------------- New: ---- telepathy-idle-dont-bling-non-bling.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ telepathy-idle.spec ++++++ --- /var/tmp/diff_new_pack.QqZ87W/_old 2020-03-16 10:16:07.319533070 +0100 +++ /var/tmp/diff_new_pack.QqZ87W/_new 2020-03-16 10:16:07.355533085 +0100 @@ -1,7 +1,7 @@ # # spec file for package telepathy-idle # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -22,7 +22,11 @@ Summary: IRC support for Telepathy License: LGPL-2.1-or-later Group: Productivity/Networking/IRC +URL: https://gitlab.freedesktop.org/telepathy/telepathy-idle Source: http://telepathy.freedesktop.org/releases/telepathy-idle/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM telepathy-idle-dont-bling-non-bling.patch -- +Patch: telepathy-idle-dont-bling-non-bling.patch + BuildRequires: libxslt BuildRequires: pkgconfig BuildRequires: python-xml @@ -33,11 +37,13 @@ Telepathy-idle provides IRC support for Telepathy. %prep -%setup -q +%autosetup -p1 %build -%configure --libexecdir=%{_prefix}/lib/%{name} -make %{?_smp_mflags} +%configure \ + --libexecdir=%{_prefix}/lib/%{name} \ + %{nil} +%make_build %install %make_install ++++++ telepathy-idle-dont-bling-non-bling.patch ++++++ >From bf6d596e40e5b9426a68dcd22aa62a697457c4f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuell...@gnome.org> Date: Sat, 13 Feb 2016 10:08:42 +0100 Subject: [PATCH] ctcp: Don't bling the non-bling When stripping color codes, we currently remove any sequence of digits following ^C. As color codes use at most two digits, this means that we also remove any numbers at the start of the colored text - make sure we stop doing that and only remove digits that are actually part of a color code. https://bugs.freedesktop.org/show_bug.cgi?id=94189 --- src/idle-ctcp.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/idle-ctcp.c b/src/idle-ctcp.c index f282360..f28bf4b 100644 --- a/src/idle-ctcp.c +++ b/src/idle-ctcp.c @@ -98,13 +98,18 @@ gchar *idle_ctcp_kill_blingbling(const gchar *msg) { case '\x03': /* ^C */ iter++; - while (isdigit(*iter)) + /* Color codes are 1-2 digits */ + if (isdigit(*iter)) + iter++; + if (isdigit(*iter)) iter++; if (*iter == ',') { iter++; - while (isdigit(*iter)) + if (isdigit(*iter)) + iter++; + if (isdigit(*iter)) iter++; } break; -- 2.24.1