Hello community,

here is the log from the commit of package gnome-games for openSUSE:Factory 
checked in at 2012-06-10 20:16:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnome-games (Old)
 and      /work/SRC/openSUSE:Factory/.gnome-games.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gnome-games", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/gnome-games/gnome-games.changes  2012-05-22 
08:14:53.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.gnome-games.new/gnome-games.changes     
2012-06-10 21:51:15.000000000 +0200
@@ -1,0 +2,6 @@
+Fri May 18 20:21:54 UTC 2012 - [email protected]
+
+- Add glchess-engines.patch: More flexibly parse the output of
+  gnuchess and phalanx engines.
+
+-------------------------------------------------------------------

New:
----
  glchess-engines.patch

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

Other differences:
------------------
++++++ gnome-games.spec ++++++
--- /var/tmp/diff_new_pack.muZzvg/_old  2012-06-10 21:51:16.000000000 +0200
+++ /var/tmp/diff_new_pack.muZzvg/_new  2012-06-10 21:51:16.000000000 +0200
@@ -28,6 +28,8 @@
 Source1:        %{name}-create-post
 Source2:        README.openSUSE
 Source3:        README-recommended.openSUSE
+# PATCH-FIX-UPSTREAM glchess-engines.patch bgo#675434 bnc#730052 
[email protected] -- More flexibly parse the output of gnuchess/phalanx 
engines. Taken from git, commit id 5cf5077.
+Patch0:         glchess-engines.patch
 BuildRequires:  clutter-devel
 BuildRequires:  clutter-gtk-devel
 BuildRequires:  fdupes
@@ -387,6 +389,7 @@
 %lang_package -n swell-foop
 %prep
 %setup -q
+%patch0 -p1
 cp -a %{S:1} .
 cp -a %{S:2} .
 cp -a %{S:3} .

++++++ glchess-engines.patch ++++++
>From 4f6efed734470eddd3e620933a6711c582028da4 Mon Sep 17 00:00:00 2001
From: Dominique Leuenberger <[email protected]>
Date: Fri, 18 May 2012 22:15:39 +0200
Subject: [PATCH] glchess: fix phalanx/gnuchess output interpretation. Bug
 675434

---
 glchess/src/chess-engine-cecp.vala |    4 ++--
 glchess/src/chess-game.vala        |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/glchess/src/chess-engine-cecp.vala 
b/glchess/src/chess-engine-cecp.vala
index cb40419..4a7aff5 100644
--- a/glchess/src/chess-engine-cecp.vala
+++ b/glchess/src/chess-engine-cecp.vala
@@ -40,7 +40,7 @@ public class ChessEngineCECP : ChessEngine
 
             debug ("Read from engine: '%s'", line);
 
-            string[] move_prefixes = { "My move is: ", "my move is ", "move " 
};
+            string[] move_prefixes = { "My move is: ", "My move is : ", "my 
move is ", "move " };
             foreach (string prefix in move_prefixes)
             {
                 if (line.has_prefix (prefix))
@@ -48,7 +48,7 @@ public class ChessEngineCECP : ChessEngine
                     string move = line[prefix.length:line.length];
                     debug ("Engine moves %s", move);
                     moving = true;
-                    moved (move);
+                    moved (move.strip());
                 }
             }
 
diff --git a/glchess/src/chess-game.vala b/glchess/src/chess-game.vala
index 3c5ebce..ecd8b83 100644
--- a/glchess/src/chess-game.vala
+++ b/glchess/src/chess-game.vala
@@ -1027,7 +1027,7 @@ public class ChessState
                 r1 = (int) (move[i] - '1');
                 i++;
             }
-            if (move[i] == 'x')
+            if (move[i] == 'x' || move[i] == '-')
                 i++;
             if (move[i] >= 'a' && move[i] <= 'h')
             {
-- 
1.7.9.2


-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to