Add patch originally missed in import. Patch by

Franz Klammer <klammer@webonaut.com>. This fixes
the build.

PR:		ports/59440
Submitted by:	Mezz (maintainer)
Approved by:	marcus (portmgr)
Pointy hat to:	me
Thanks for being so patient with me:	Mezz
This commit is contained in:
Adam Weinberger 2003-11-30 18:19:02 +00:00
parent 9e4c82a3e5
commit ecac35aaa4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94830

View File

@ -0,0 +1,21 @@
# Many thanks to Franz Klammer <klammer@webonaut.com> for help
# and create this patch.
--- GoodWeather/__init__.py.orig Tue Nov 18 16:38:53 2003
+++ GoodWeather/__init__.py Tue Nov 18 16:40:14 2003
@@ -151,7 +151,14 @@
fh = urllib.urlopen(self.WEATHER_SOURCE % vars())
data = fh.read()
- weather = parseGoodWeatherData(data)
+ #weather = parseGoodWeatherData(data)
+ data_error = re.search(r'''(<error>)''', data)
+ if not data_error:
+ weather = parseGoodWeatherData(data)
+ else:
+ time.sleep(1)
+ continue
+
metric = 0
if (units == self.CELSIUS):
metric = 1