mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Fix a problem where straw wouldn't show any articles if the locale was set
to anything other than C. Also, make sure we persist articles across reboots. Approved by: maintainer
This commit is contained in:
parent
6be8039587
commit
dc098e07f7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94083
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
PORTNAME= straw
|
PORTNAME= straw
|
||||||
PORTVERSION= 0.21.1
|
PORTVERSION= 0.21.1
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= net gnome
|
CATEGORIES= net gnome
|
||||||
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
||||||
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}.pkg/${PORTVERSION}/
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTNAME}.pkg/${PORTVERSION}/
|
||||||
|
11
net/straw/files/patch-src::lib::Config.py
Normal file
11
net/straw/files/patch-src::lib::Config.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- src/lib/Config.py.orig Sun Nov 16 03:57:07 2003
|
||||||
|
+++ src/lib/Config.py Sun Nov 16 03:58:04 2003
|
||||||
|
@@ -364,6 +364,8 @@
|
||||||
|
last_poll = property(get_last_poll, set_last_poll, None, "Last polled")
|
||||||
|
|
||||||
|
def get_number_of_items_stored(self):
|
||||||
|
+ if self._items_stored == 0:
|
||||||
|
+ return 30
|
||||||
|
return self._items_stored
|
||||||
|
|
||||||
|
def set_number_of_items_stored(self, num=30):
|
11
net/straw/files/patch-src::lib::utils.py
Normal file
11
net/straw/files/patch-src::lib::utils.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- src/lib/utils.py.orig Sun Nov 16 03:58:11 2003
|
||||||
|
+++ src/lib/utils.py Sun Nov 16 03:58:32 2003
|
||||||
|
@@ -22,7 +22,7 @@
|
||||||
|
previous = None
|
||||||
|
while res_len < chars and i < frag_len - 1:
|
||||||
|
i += 1
|
||||||
|
- current = fragment[i]
|
||||||
|
+ current = fragment[i].encode('utf-8')
|
||||||
|
if in_tag:
|
||||||
|
if in_attr:
|
||||||
|
if current == '"':
|
Loading…
Reference in New Issue
Block a user