Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37814094
en ru br
ALT Linux repos
S:1.3.2-alt1

Group :: System/Libraries
RPM: libfm

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 0002-SF-1082-Fix-SelectionCount-condition-parsing-if-was-.patch
Download


From 8914a52b0916fde8ac5d3cfc9a35ed553a1e089f Mon Sep 17 00:00:00 2001
From: Andriy Grytsenko <andrej@rep.kiev.ua>
Date: Wed, 1 Apr 2020 23:19:54 +0300
Subject: [PATCH 2/2] [SF#1082] Fix 'SelectionCount' condition parsing if '='
 was used.
---
 src/base/fm-action.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/base/fm-action.c b/src/base/fm-action.c
index f368da0e..689d75b0 100644
--- a/src/base/fm-action.c
+++ b/src/base/fm-action.c
@@ -1,7 +1,8 @@
 /*
  *      fm-action.c
  *
- *      Copyright 2014-2018 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua>
+ *      Copyright 2014-2020 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua>
+ *      Copyright 2020 Leonardo Citrolo <leoc@users.sourceforge.net>
  *
  *      This file is a part of the Libfm library.
  *
@@ -1272,6 +1273,8 @@ static FmActionCondition *_g_key_file_get_conditions(GKeyFile *kf, const char *g
             c++, type = CONDITION_TYPE_COUNT_LESS;
         else if (c[0] == '>')
             c++, type = CONDITION_TYPE_COUNT_MORE;
+        else if (c[0] == '=')
+            c++, type = CONDITION_TYPE_COUNT;
         else
             type = CONDITION_TYPE_COUNT;
         while (c[0] == ' ') c++;
-- 
2.25.4
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin