mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
desktop/CurseTheWeather: Updated patch.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
8849c963f4
commit
c93efb0c0e
2 changed files with 20 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
diff -Naur CurseTheWeather-0.6-orig/ctw CurseTheWeather-0.6/ctw
|
diff -Naur CurseTheWeather-0.6-orig/ctw CurseTheWeather-0.6/ctw
|
||||||
--- CurseTheWeather-0.6-orig/ctw 2009-10-05 10:46:02.000000000 -0400
|
--- CurseTheWeather-0.6-orig/ctw 2009-10-05 10:46:02.000000000 -0400
|
||||||
+++ CurseTheWeather-0.6/ctw 2013-11-08 18:46:54.747612989 -0500
|
+++ CurseTheWeather-0.6/ctw 2014-11-22 16:29:05.803956562 -0500
|
||||||
@@ -183,19 +183,19 @@
|
@@ -183,19 +183,19 @@
|
||||||
forecastWindowsCreated = True
|
forecastWindowsCreated = True
|
||||||
day = 0
|
day = 0
|
||||||
|
@ -27,7 +27,7 @@ diff -Naur CurseTheWeather-0.6-orig/ctw CurseTheWeather-0.6/ctw
|
||||||
win.box()
|
win.box()
|
||||||
diff -Naur CurseTheWeather-0.6-orig/weatherfeed.py CurseTheWeather-0.6/weatherfeed.py
|
diff -Naur CurseTheWeather-0.6-orig/weatherfeed.py CurseTheWeather-0.6/weatherfeed.py
|
||||||
--- CurseTheWeather-0.6-orig/weatherfeed.py 2009-07-14 08:17:40.000000000 -0400
|
--- CurseTheWeather-0.6-orig/weatherfeed.py 2009-07-14 08:17:40.000000000 -0400
|
||||||
+++ CurseTheWeather-0.6/weatherfeed.py 2013-11-08 18:54:08.193597004 -0500
|
+++ CurseTheWeather-0.6/weatherfeed.py 2014-11-22 17:26:07.789830359 -0500
|
||||||
@@ -48,11 +48,11 @@
|
@@ -48,11 +48,11 @@
|
||||||
|
|
||||||
def _getData(self):
|
def _getData(self):
|
||||||
|
@ -62,7 +62,20 @@ diff -Naur CurseTheWeather-0.6-orig/weatherfeed.py CurseTheWeather-0.6/weatherfe
|
||||||
|
|
||||||
def _setCurrentConditions(self, node):
|
def _setCurrentConditions(self, node):
|
||||||
for elem in node.childNodes:
|
for elem in node.childNodes:
|
||||||
@@ -234,10 +240,6 @@
|
@@ -183,7 +189,11 @@
|
||||||
|
self.forecast[index]["day"] = {}
|
||||||
|
for subelem in elem.childNodes:
|
||||||
|
if subelem.nodeName == 't':
|
||||||
|
- self.forecast[index]["day"]["type"] = subelem.firstChild.data
|
||||||
|
+ # type may be blank
|
||||||
|
+ if subelem.firstChild:
|
||||||
|
+ self.forecast[index]["day"]["type"] = subelem.firstChild.data
|
||||||
|
+ else:
|
||||||
|
+ self.forecast[index]["day"]["type"] = " "
|
||||||
|
|
||||||
|
if subelem.nodeName == 'ppcp':
|
||||||
|
self.forecast[index]["day"]["pop"] = subelem.firstChild.data
|
||||||
|
@@ -234,10 +244,6 @@
|
||||||
self.forecast[index]["night"]["wind"]["direction"] = windelem.firstChild.data
|
self.forecast[index]["night"]["wind"]["direction"] = windelem.firstChild.data
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,12 @@
|
||||||
|
|
||||||
# Modified by the SlackBuilds.org project.
|
# Modified by the SlackBuilds.org project.
|
||||||
|
|
||||||
|
# Build 3 contains updated patch to fix upstream errors due to day type having no data in XML
|
||||||
|
# Better error checking or exception handling should probably be implemented in the source
|
||||||
|
|
||||||
PRGNAM=CurseTheWeather
|
PRGNAM=CurseTheWeather
|
||||||
VERSION=0.6
|
VERSION=0.6
|
||||||
BUILD=${BUILD:-2}
|
BUILD=${BUILD:-3}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
|
|
Loading…
Reference in a new issue