summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorVlad Glagolev2015-03-31 18:10:06 +0300
committerVlad Glagolev2015-03-31 18:10:06 +0300
commit46e519e98f3f8053160c42b4a6db0aeee70880f5 (patch)
treef3b3733cc2bc259912794fbf1224d7cda7667ddc /news
parent619d9efc32333458479883ab056dc886b4f27f1a (diff)
fbnews: fix closing parenthesis parsing
Diffstat (limited to 'news')
-rwxr-xr-xnews/fbnews/DETAILS1
-rw-r--r--news/fbnews/HISTORY5
-rwxr-xr-xnews/fbnews/PRE_BUILD3
-rw-r--r--news/fbnews/fbnews.patch20
4 files changed, 27 insertions, 2 deletions
diff --git a/news/fbnews/DETAILS b/news/fbnews/DETAILS
index f4fb66e76d..991dfd4c93 100755
--- a/news/fbnews/DETAILS
+++ b/news/fbnews/DETAILS
@@ -1,5 +1,6 @@
SPELL=fbnews
VERSION=0.5.1
+ PATCHLEVEL=1
# wrong version in a package
VERSIONX=${VERSION%.*}
SOURCE=${SPELL}-${VERSIONX}.tar.gz
diff --git a/news/fbnews/HISTORY b/news/fbnews/HISTORY
index b9d81f247b..9fbf108703 100644
--- a/news/fbnews/HISTORY
+++ b/news/fbnews/HISTORY
@@ -1,2 +1,7 @@
+2015-03-31 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS: PATCHLEVEL=1
+ * PRE_BUILD: merge encoding fix into the fbnews.patch
+ * fbnews.patch: added, to fix closing parenthesis parsing
+
2015-01-16 Vlad Glagolev <stealth@sourcemage.org>
* DETAILS, DEPENDS, {PRE_,}BUILD, INSTALL: created spell, version 0.5
diff --git a/news/fbnews/PRE_BUILD b/news/fbnews/PRE_BUILD
index 39afd77f9f..375b5e6ec0 100755
--- a/news/fbnews/PRE_BUILD
+++ b/news/fbnews/PRE_BUILD
@@ -1,5 +1,4 @@
default_pre_build &&
cd "${SOURCE_DIRECTORY}" &&
-# use utf-8 encoding
-sedit "s:iso8859_15:utf-8:" fbnews.py
+patch -p0 < "$SPELL_DIRECTORY/fbnews.patch"
diff --git a/news/fbnews/fbnews.patch b/news/fbnews/fbnews.patch
new file mode 100644
index 0000000000..e7fe4fbc14
--- /dev/null
+++ b/news/fbnews/fbnews.patch
@@ -0,0 +1,20 @@
+--- fbnews.py.orig 2005-05-31 19:02:24.000000000 +0400
++++ fbnews.py 2015-03-31 18:03:11.204129918 +0300
+@@ -24,7 +24,7 @@
+ __revision__ = "0.5"
+
+ DEBUG = False
+-ENCODING = 'iso8859_15'
++ENCODING = 'utf-8'
+
+ import urllib, time, os, codecs, sys, getopt, StringIO
+ import fbnconf
+@@ -77,7 +77,7 @@
+ format += config.siteformat(caption) + ') {}\n'
+
+ for key in lst[1].keys():
+- format += u'[exec] (' + key + ') {' \
++ format += u'[exec] (' + key.replace(')', '\\)') + ') {' \
+ + config.browser(lst[1][key]) + u'}\n'
+
+ format += '[end]\n'