[libpinyin] Fixes import dictionary

Peng Wu pwu at fedoraproject.org
Sat Mar 23 03:51:50 UTC 2013


commit 0053ac93cd6d8ce0565b7fa0708d9f7ab410fec0
Author: Peng Wu <alexepico at gmail.com>
Date:   Sat Mar 23 09:56:43 2013 +0800

    Fixes import dictionary

 libpinyin-0.9.x-head.patch |   25 +++++++++++++++++++++++++
 libpinyin.spec             |    7 +++++--
 2 files changed, 30 insertions(+), 2 deletions(-)
---
diff --git a/libpinyin-0.9.x-head.patch b/libpinyin-0.9.x-head.patch
index e69de29..ceb4111 100644
--- a/libpinyin-0.9.x-head.patch
+++ b/libpinyin-0.9.x-head.patch
@@ -0,0 +1,25 @@
+From 00fec992f5c760f546a1db933fb08325fc9cccbf Mon Sep 17 00:00:00 2001
+From: Peng Wu <alexepico at gmail.com>
+Date: Sat, 23 Mar 2013 09:52:46 +0800
+Subject: [PATCH] fixes import dict
+
+---
+ src/storage/phrase_large_table2.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/storage/phrase_large_table2.h b/src/storage/phrase_large_table2.h
+index 368d03d..34bb12d 100644
+--- a/src/storage/phrase_large_table2.h
++++ b/src/storage/phrase_large_table2.h
+@@ -133,7 +133,7 @@ static inline int reduce_tokens(const PhraseTokens tokens,
+     }
+ 
+     /* the following line will be removed in future after code are verified. */
+-    assert(0 == num || 1 == num);
++    assert(0 <= num && num <= 3);
+ 
+     return num;
+ }
+-- 
+1.8.1.4
+
diff --git a/libpinyin.spec b/libpinyin.spec
index 31dd86e..c75e8d4 100644
--- a/libpinyin.spec
+++ b/libpinyin.spec
@@ -1,8 +1,8 @@
-%global snapshot 0
+%global snapshot 1
 
 Name:           libpinyin
 Version:        0.8.93
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Library to deal with pinyin
 
 License:        GPLv2+
@@ -92,6 +92,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 %{_mandir}/man1/*.1.*
 
 %changelog
+* Sat Mar 23 2013 Peng Wu <pwu at redhat.com> - 0.8.93-2
+- Fixes import dictionary
+
 * Mon Mar 18 2013 Peng Wu <pwu at redhat.com> - 0.8.93-1
 - Update to 0.8.93
 


More information about the scm-commits mailing list